pandas to hdmf dynamic table #30
Replies: 1 comment 2 replies
-
It sounds like you already have all the column data available when you create the table. In that case you can just supply the columns to the constructor via the Alternatively, if the column structure of your Pandas dataframe includes the required columns for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have an analysis that spits out some data in a pandas DataFrame, and I'd like to be able to store it in my NWB file. This particular data is interval-based, so my plan was to use a TimeIntervals object. I see in the tutorial that I could add all the columns I want, then add row by row. But this table will have tens of thousands of rows, so I'd rather add by column. Problem is, it doesn't seem like that's possible? Eg
gives
ValueError: column must have the same number of rows as 'id'
.I'm a bit at a loss for how to simply "drag and drop" columns from the dataframe into the TimeIntervals object. Any suggestions are welcome...I will resort to looping row by row if I need to, but it just feels wrong. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions