def from_non_pandas(df, index, columns, dtype): """ Implement [METHOD_NAME]. TODO: Add more details for this docstring template. Parameters ---------- What arguments does this function have. [ PARAMETER_NAME : PARAMETERS TYPES Description. ] Returns ------- What this returns (if anything) """ from modin.data_management.factories.dispatcher import EngineDispatcher new_qc = EngineDispatcher.from_non_pandas(df, index, columns, dtype) if new_qc is not None: from .dataframe import DataFrame return DataFrame(query_compiler=new_qc) return new_qc
def from_non_pandas(df, index, columns, dtype): from modin.data_management.factories.dispatcher import EngineDispatcher new_qc = EngineDispatcher.from_non_pandas(df, index, columns, dtype) if new_qc is not None: from .dataframe import DataFrame return DataFrame(query_compiler=new_qc) return new_qc