[DataFrame] Fix for __getitem__ string indexing (#1939)

* edge case fixes for __getitem__

* Enable None indexing
This commit is contained in:
Kunal Gosar authored and Devin Petersohn committed 2018-04-23 13:13:14 -07:00
1 parent 7c9f39241e
commit 29c36f2bce
1 file changed
+1 -1
+1 -1
View File
@@ -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]