After I use MNE for preprocessing, I want to export EEG data to Excel on average. Could you please tell me how to do it?

:question: If you have a question or issue with MNE-Python, please include the following info:

  • MNE version: e.g. 0.24.0
  • operating system: Windows 10

I now proceed to the following steps:

epochs.equalize_event_counts([‘pain’,‘noPain’])

my purpose:

After I use MNE for preprocessing, I want to export EEG data to Excel on average. Could you please tell me how to do it?

Hello, if you’ve created evoked objects with MNE-Python, you can then use their to_data_frame() method to generate a Pandas DataFrame, from where you can easily export to XLSX, CSV, etc., e.g.:

evoked_df = evoked.to_data_frame(index='time')
evoked_df.to_excel('evoked.xlsx')

Best wishes,
Richard

2 Likes

Thank you very much for your answer