Understanding Dynamic Variable Generation

Asked 2 years ago, Updated 2 years ago, 17 views

I have a question on python.
We would like to generate n data frame types of variables: df1, df2, df3, ..., dfn.

Could you tell me how to write the code here?

Thank you for your cooperation.

python

2022-09-29 22:50

1 Answers

I haven't written much.
I wrote something like the following, but when I typed print(df100) at the end, nothing came out.

import pandas aspd
for i in range (1,131):
dfi=pd.DataFrame()
print(df100)


2022-09-29 22:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.