Skip to content

Commit 79fafea

Browse files
committed
comment out bad code
1 parent 67e7123 commit 79fafea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

larray/core.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -1745,10 +1745,11 @@ def __setitem__(self, key, value, collapse_slices=True):
17451745
# this is how Pandas works internally. Ugly (locs are bool arrays.
17461746
# Ugh!)
17471747
a0_locs = data.index.get_locs(a0_key)
1748-
if isinstance(data, pd.DataFrame):
1749-
a1_locs = a1_key if a1_key == slice(None) \
1750-
else data.columns.get_locs(a1_key)
1751-
target_columns = data.columns[a1_locs]
1748+
# if isinstance(data, pd.DataFrame):
1749+
# # FIXME: simple Index have no .get_locs method
1750+
# a1_locs = a1_key if a1_key == slice(None) \
1751+
# else data.columns.get_locs(a1_key)
1752+
# target_columns = data.columns[a1_locs]
17521753

17531754
# data.iloc[(a0_locs, a1_locs)] = ...
17541755
target_index = data.index[a0_locs]

0 commit comments

Comments
 (0)