mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 05:17:38 +08:00
Fix getattr compat (#1871)
This commit is contained in:
committed by
Robert Nishihara
parent
202f9683ea
commit
806b2c844e
@@ -62,6 +62,8 @@ class DataFrame(object):
|
||||
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
|
||||
@@ -90,7 +92,6 @@ class DataFrame(object):
|
||||
"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)
|
||||
|
||||
Reference in New Issue
Block a user