I'm using MNE python, this is the for loop I am running:
for idx, subjects in enumerate(df_epochs['Speak']):
df_spe = subjects.to_data_frame()
df_spe.to_csv('/Users/al/Desktop/Data analysis/Dataframes/df_spe_%d_%s.csv' % idx, subjects)
for idx, subjects in enumerate(df_epochs['Visual']):
df_vis = subjects.to_data_frame()
df_vis.to_csv('/Users/al/Desktop/Data analysis/Dataframes/df_vis_%d_%s.csv' % idx, subjects)
It runs perfectly but doesn't spit out any dataframes, when i try printing the df it says they aren't defined. Any idea of where i can start with the troubleshooting? This is really urgent, please help <3.
for idx, subjects in enumerate(df_epochs['Speak']):
# not df_spe = sub.to_data_frame()
# but
df_spe = subjects.to_data_frame()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.