0
Is it possible to create multiple Dataframes within an iteration? I need to do this feat, follow the example:
in the NUM iteration, it has numbers from 0 to 9, total 10 numbers.
in the for nn in NUM:
it will iterate renaming the df_nn
getting df_0 df_1...
until df_9
, thus generating 10 different Dataframes, where I can query each one.
Is there any way to do this? Thank you
import pandas as pd
import random
NUM = [n for n in range(10)]
for nn in NUM:
df_nn = pd.DataFrame({
"A":[random.random(),random.random()]
})
perfect, thank you for your availability, hug
– Saulo