Skip to content

Commit

Permalink
fix for pandas 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jan 24, 2022
1 parent 48396f6 commit 0b9d527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion one/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def ses2records(ses: dict) -> [pd.Series, pd.DataFrame]:
# session_data['id_0'], session_data['id_1'] = eid.flatten().tolist()
session = (
(pd.Series(data=session_data, name=tuple(eid.flatten()))
.rename({'start_time': 'date'}, axis=1))
.rename({'start_time': 'date'}))
)
session['date'] = session['date'][:10]

Expand Down

0 comments on commit 0b9d527

Please sign in to comment.