0

Can anyone help me understand how can a create multiple pandas dataframes like df1 df2 ... df100. I have a dictionary, like below and would like to iterate through each key to create a new dataframe.

enter image description here

and each key has data like below:

enter image description here

Ritesh Kankonkar
  • 363
  • 3
  • 12
  • 1
    What is reason for it? It is not recommended - [link](https://stackoverflow.com/questions/30635145/create-multiple-dataframes-in-loop/30638956#30638956) – jezrael Nov 15 '19 at 06:22
  • to be honest, I am not sure what I am going to do with it, I can perform pretty much all my analysis from the dictionary itself. However, while exploring a few things online, I ended up having this question in mind. So for now, its mostly for improving my python knowledge just for knowing how would it be done. – Ritesh Kankonkar Nov 15 '19 at 06:38
  • yop, I think my comment it is not necessary, dictionary of DataFrames is good. Only if need one big DataFrame then use `df = pd.concat(frames)` – jezrael Nov 15 '19 at 06:41
  • But still, would there be a way? and why is it not recommended? I am guessing for memory and processing reasons? – Ritesh Kankonkar Nov 15 '19 at 06:45
  • check link in first comment ;) – jezrael Nov 15 '19 at 06:52
  • 1
    Ah, ok. Got it. Thanks. – Ritesh Kankonkar Nov 15 '19 at 06:55

0 Answers0