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
MD ARIFUL HAQUE -
George WL -
Umair QA -
Shubhang Sharma -
Top comments (1)
nice!