I am having the issue in converting the row-wise data of dataframe with the column name as key and row data as value. I want to pass this row-wise json to another API a
you can try this hope it will work:
import pandas as pd df = pd.read_csv(your file path) df.to_json()