- MNE version: e.g. 1.8.0.dev141+g6da505591
- operating system: Windows 10
Hello,
When adding metadata to an epochs object, I am encountering something rather odd. Say I have the following pandas dataframe:
Stim |
---|
face |
object |
face |
I append this dataframe to the epochs object like so:
new_metadata = pd.DataFrame(
data=(behavdata)*len(myeegdata), columns=["stim"], index=range(len(myeegdata))
)
myeegdata.metadata = new_metadata
myeegdata.metadata.head()
It attaches as metadata, but with one weird caveat. When I examine the metadata, the output looks like this:
1 facefacefacefacefacefacefacefacefacefacefacefa...
2 objectobjectobjectobjectobjectobjectobjectobject...
3 facefacefacefacefacefacefacefacefacefacefacefa...
Is there a way I can get the variables to stop repeating this way? Thank you very much!