I tried a method to handle a large number of data frames as a list. It may be general knowledge, but I made a note of it because it was not introduced. ・ Usually, you give each one a name and work.
import pandas as pd df1 = ... df2 = ... df3 = ... Processing using df1, df2, df3
It is difficult to process a large number of data frames repeatedly. That's where the list comes in. It can be used conveniently other than repetitive processing. I read multiple data frames and use them when mapping.
import pandas as pd
df = []
for i in range(3):
df.append(...)
for i in range(3):
df[i] = ...
I'm a beginner. Supervised, thank you.
Recommended Posts