Commit 7b7bac86 authored by Niels-Oliver Walkowski's avatar Niels-Oliver Walkowski
Browse files

change return value into pandas dataframe

parent efaade23
......@@ -156,7 +156,8 @@ class Movie(object):
# mit übergebe ?
data = views.MultivariateSequence(self._frames,)
data.populate(ctrst=ctrst, method=meth, frm_stp=stp)
data = pd.DataFrame(data, columns=['frame', 'bin', 'pixels'])
data = pd.DataFrame(data, columns=['frame', 'bin', 'pixels'],
data['time'] = data['frame'].apply(helpers.frame2time, fps=4)
return data
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment