Skip to content

Commit

Permalink
Merge pull request #34 from pdunc/master
Browse files Browse the repository at this point in the history
Allow variable length channels when using 'as_dataframe'
  • Loading branch information
adamreeve committed Sep 3, 2015
2 parents 140452b + 5fdebdc commit 548e668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nptdms/tdms.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def as_dataframe(self):

temp = {}
for key, value in self.objects.items():
temp[key] = value.data
temp[key] = pd.Series(data=value.data)
return pd.DataFrame.from_dict(temp)

def as_dataframe_withtimeindex(self):
Expand All @@ -325,7 +325,7 @@ def as_dataframe_withtimeindex(self):
for key, value in self.objects.items():
if value.has_data:
temp[key] = pd.Series(data=value.data, index=value.time_track())
return pd.DataFrame.from_dict(temp)
return pd.DataFrame.from_dict(temp)


class _TdmsSegment(object):
Expand Down

0 comments on commit 548e668

Please sign in to comment.