# Filter files in csv

**URL:** <https://mne.discourse.group/t/filter-files-in-csv/5472>\
**Category:** Support & Discussions\
**Tags:** preprocessing\
**Created:** [August 26, 2022, 1:24am UTC](https://mne.discourse.group/t/filter-files-in-csv/5472 "2022-08-26T01:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhD-GOAT](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/phd-goat/32/1326_2.png) [@PhD-GOAT](https://mne.discourse.group/u/PhD-GOAT)\
**Post date:** [August 26, 2022, 1:24am UTC](https://mne.discourse.group/t/filter-files-in-csv/5472/1 "2022-08-26T01:24:03Z")

</div>

- MNE version: 1.1.1
- operating system: macOS 12

Is it possible to filter eeg or ecg data in csv rather than edf and save it in csv form instead of visualizing it?

In summary, is it possible to save it as a filtered csv file?

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [August 26, 2022, 8:46am UTC](https://mne.discourse.group/t/filter-files-in-csv/5472/2 "2022-08-26T08:46:53Z")

</div>

Raw, epoched, and evoked objects have a `.to_data_frame()` method, which you can use to create a Pandas DataFrame and export the tabular data from there. See:

> [@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？](https://mne.discourse.group/t/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/5443/2):
>
> Hello, if you’ve created evoked objects with MNE-Python, you can then use their [to\_data\_frame()](https://mne.tools/stable/generated/mne.Evoked.html#mne.Evoked.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
