Skip to content

Commit

Permalink
FEAT-modin-project#4605: Basic approach layout
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Krishna <[email protected]>
  • Loading branch information
naren-ponder committed Jul 26, 2022
1 parent f5f4c16 commit 0512180
Show file tree
Hide file tree
Showing 2 changed files with 2,263 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modin/pandas/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ def _init(
if columns is None:
columns = slice(None)
self._query_compiler = data.loc[index, columns]._query_compiler
if len(self.columns) == 0 or len(self.index) == 0:
return EmptyDataFrame(
data=data,
index=index,
columns=columns,
dtype=dtype,
copy=copy,
query_compiler=query_compiler,
)

# Check type of data and use appropriate constructor
elif query_compiler is None:
Expand Down
Loading

0 comments on commit 0512180

Please sign in to comment.