Hello, Python. I'm a beginner at Panda's.
Declare the entire data as
I would like to declare it as data by dividing it 97 times by 2,000 each
F1_0 is from index number 0 to 1999,
F1_1 is from 2000 to 3999, and the last
F1_96 is from 2000 to 3999
To create a data frame, I wrote the following repetition statement.
F1_0 calls well
F1_1, it says that it has not been defined, but it doesn't work.
I can't make a clean code for Python and Pandas, and I don't know what's wrong.
Masters, please help me.loops pandas for python dataframe
Do not create variables with
F1_0, F1_1, ... When you want to do a variable like this, it's right to use an array. f1_list, f1_list, ... Like this.
globals() It's clean and easy to write.
© 2022 pinfo. All rights reserved.