ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 74 forks source link

Concatenating Multiple Dataframes #159

Closed msnir009 closed 5 years ago

msnir009 commented 5 years ago

Python version

3.7.1

Platform information

'Windows-10-10.0.16299-SP0'

Numpy version

1.16.2

mdfreader version

'3.0'

Description

I have mdf files that contains recordings in different timestamp frequencies. When I used the convert_to_pandas() function, it creates multiple dataframes according to the different recording frequencies. How do I then concatenate these dataframes so that it appears in one big table instead? Thank you.

ratal commented 5 years ago

Hi This default behavior avoids loosing information or inflating memory use unintended. You could resample the pandas frame using .resample and .join Otherwise, you could resample using mdfreader before the convert to pandas.

ratal commented 5 years ago

I guess it helped. If still problematic feel free to reopen this issue