mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 13:54:27 +08:00
[DataFrame] Fix for __getitem__ string indexing (#1939)
* edge case fixes for __getitem__ * Enable None indexing
This commit is contained in:
committed by
Devin Petersohn
parent
7c9f39241e
commit
29c36f2bce
@@ -3266,7 +3266,7 @@ class DataFrame(object):
|
||||
columns=columns,
|
||||
index=index)
|
||||
else:
|
||||
columns = self.columns[key]
|
||||
columns = self._col_metadata[key].index
|
||||
|
||||
indices_for_rows = [self.columns.index(new_col)
|
||||
for new_col in columns]
|
||||
|
||||
Reference in New Issue
Block a user