Skip to content

Commit

Permalink
add back required change
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Dec 1, 2020
1 parent d509894 commit 2a9b65c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -4940,10 +4940,7 @@ def from_pandas(cls, dataframe, nan_as_null=None):
df.columns = dataframe.columns

# Set index
if isinstance(dataframe.index, pd.MultiIndex):
index = cudf.from_pandas(dataframe.index, nan_as_null=nan_as_null)
else:
index = dataframe.index
index = cudf.from_pandas(dataframe.index, nan_as_null=nan_as_null)
result = df.set_index(index)

return result
Expand Down

0 comments on commit 2a9b65c

Please sign in to comment.