I have a CSV and I would like to create a python file from it with array of dics inside.
Any search on how to do that bring me to using Pandas to create a dic in memory.
I need to create a physical file name.py in my project, and inside to have a code:
data = [{key:value},{key:value},...] # from my csv. Can have any other structure like dics in dic
I can start with this :
df = pd.read_csv ('index/index.csv')
dfand print the contents ofdf? If so, show it. If you don't know, please clarify in your question that you don't know how to get the data out of the dataframe.