Turn two columns of any csv file into a dictionary:
col1_col2_map = pd.read_csv("cur.csv", dtype=str)[["col1", "col2"]].set_index("col1").to_dict()["col2"]
Turn two columns of any csv file into a dictionary:
col1_col2_map = pd.read_csv("cur.csv", dtype=str)[["col1", "col2"]].set_index("col1").to_dict()["col2"]
For further actions, you may consider blocking this person and/or reporting abuse
Java para Iniciantes (Oracle) -
Afolabi Abdulsamad -
Kaae Robles -
bsorrentino -
Top comments (1)
nice!