Skip to content

Commit

Permalink
Add list constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Rehan Durrani <rehan@ponder.io>
  • Loading branch information
RehanSD committed Dec 12, 2022
1 parent 1c6d708 commit 30171d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modin/numpy/arr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ class array(object):
def __init__(self, object=None, dtype=None, *, copy=True, order='K', subok=False, ndmin=0, like=None, query_compiler=None):
if query_compiler is not None:
self._query_compiler = query_compiler
elif isinstance(object, list):
import modin.pandas as pd
qc = pd.DataFrame(object)._query_compiler
self._query_compiler = qc
else:
arr = numpy.array(object, dtype=dtype, copy=copy, order=order, subok=subok, ndmin=ndmin, like=like)
pass
Expand Down

0 comments on commit 30171d2

Please sign in to comment.