Skip to content

Commit

Permalink
Fix getattr compat (ray-project#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-petersohn authored and robertnishihara committed Apr 11, 2018
1 parent 202f968 commit 806b2c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ray/dataframe/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def __init__(self, data=None, index=None, columns=None, dtype=None,
col_metadata (_IndexMetadata):
Metadata for the new dataframe's columns
"""
self._row_metadata = self._col_metadata = None

# Check type of data and use appropriate constructor
if data is not None or (col_partitions is None and
row_partitions is None and
Expand Down Expand Up @@ -90,7 +92,6 @@ def __init__(self, data=None, index=None, columns=None, dtype=None,
"Columns not defined, must define columns for internal " \
"DataFrame creations"

self._row_metadata = self._col_metadata = None
if block_partitions is not None:
# put in numpy array here to make accesses easier since it's 2D
self._block_partitions = np.array(block_partitions)
Expand Down

0 comments on commit 806b2c8

Please sign in to comment.