Skip to content

Commit 6f8fdc0

Browse files
authored
fix a indices bug for categorical-datetime columns
This is to fix a bug reported in pandas-dev#26859
1 parent 430f0fd commit 6f8fdc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/groupby/ops.py

+1
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def indices(self):
232232
label_list = [ping.labels for ping in self.groupings]
233233
keys = [com.values_from_object(ping.group_index)
234234
for ping in self.groupings]
235+
keys = [np.array(key) for key in keys]
235236
return get_indexer_dict(label_list, keys)
236237

237238
@property

0 commit comments

Comments
 (0)