Skip to content

Commit fbaa9cd

Browse files
author
patrick
committed
CLN: Fix equals empty list with bool expression
1 parent aa981dd commit fbaa9cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/reshape/reshape.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def _unstack_multiple(data, clocs, fill_value=None):
338338
comp_ids, obs_ids = compress_group_index(group_index, sort=False)
339339
recons_codes = decons_obs_group_ids(comp_ids, obs_ids, shape, ccodes, xnull=False)
340340

341-
if rlocs == []:
341+
if not rlocs:
342342
# Everything is in clocs, so the dummy df has a regular index
343343
dummy_index = Index(obs_ids, name="__placeholder__")
344344
else:

0 commit comments

Comments
 (0)