How to create response json from pandas csv in django?
df.to_json (r'Path where the new JSON file will be stored\New File Name.json')
to need to first save the than send it to a response
get error when use this
df = pd.read_csv('filename.csv', usecols=[1,5,7])
return Response(df.to_json(),status=status.HTTP_200_OK)