From 806b2c844e4591497f0567d27cfee4f086d6f728 Mon Sep 17 00:00:00 2001 From: Devin Petersohn Date: Tue, 10 Apr 2018 21:28:59 -0700 Subject: [PATCH] Fix getattr compat (#1871) --- python/ray/dataframe/dataframe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ray/dataframe/dataframe.py b/python/ray/dataframe/dataframe.py index f333b0347..bbd219542 100644 --- a/python/ray/dataframe/dataframe.py +++ b/python/ray/dataframe/dataframe.py @@ -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)