Skip to content

Commit 3e66b09

Browse files
committed
Fix missing d.month in positions_binning function
1 parent e2ab26b commit 3e66b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bandicoot/helper/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def positions_binning(records):
113113
(during 30 minutes), we select the last one.
114114
"""
115115
def get_key(d):
116-
return (d.year, d.day, d.hour, d.minute // 30)
116+
return (d.year, d.month, d.day, d.hour, d.minute // 30)
117117

118118
chunks = itertools.groupby(records, key=lambda r: get_key(r.datetime))
119119

0 commit comments

Comments
 (0)