after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def sort_index_for_equal_values(result, ascending): """ Sort indices for equal values of result object. Parameters ---------- result : pandas.Series or pandas.DataFrame with one column The object whose indices for equal values is needed to sort. ascending : boolean Sort in ascen...
def sort_index_for_equal_values(result, ascending): """ Sort indices for equal values of result object. Parameters ---------- result : pandas.Series or pandas.DataFrame with one column The object whose indices for equal values is needed to sort. ascending : boolean Sort in ascen...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def applyier(df, **kwargs): result = df.apply(func, **applyier_kwargs) return result.set_axis(df.axes[axis ^ 1], axis=0)
def applyier(df, other): concated = pandas.concat([df, other], axis=1, copy=False) result = concated.pivot_table( index=index, values=values if len(values) > 0 else None, columns=columns, aggfunc=aggfunc, fill_value=fill_value, margins=margins, dropna=drop...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def caller(self, *args, **kwargs): # If `numeric_only` is None then we don't know what columns/indices will # be dropped at the result of reduction function, and so can't preserve labels preserve_index = kwargs.get("numeric_only", None) is not None return applier.register(*funcs, preserve_index=preserve...
def caller(df, *args, **kwargs): df = df.copy() func(df, *args, **kwargs) return df
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def call(cls, fold_function, **call_kwds): def caller(query_compiler, *args, **kwargs): axis = call_kwds.get("axis", kwargs.get("axis")) return query_compiler.__constructor__( query_compiler._modin_frame._fold( cls.validate_axis(axis), lambda x: fold_funct...
def call(cls, fold_function, **call_kwds): def caller(query_compiler, *args, **kwargs): return query_compiler.__constructor__( query_compiler._modin_frame._fold( call_kwds.get("axis") if "axis" in call_kwds else kwargs.get("axis"), lambda x: fold_function(x, *args...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def caller(query_compiler, *args, **kwargs): axis = call_kwds.get("axis", kwargs.get("axis")) return query_compiler.__constructor__( query_compiler._modin_frame._fold( cls.validate_axis(axis), lambda x: fold_function(x, *args, **kwargs), ) )
def caller(query_compiler, *args, **kwargs): return query_compiler.__constructor__( query_compiler._modin_frame._fold( call_kwds.get("axis") if "axis" in call_kwds else kwargs.get("axis"), lambda x: fold_function(x, *args, **kwargs), ) )
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def call(cls, map_function, reduce_function, **call_kwds): def caller(query_compiler, *args, **kwargs): preserve_index = call_kwds.pop("preserve_index", True) axis = call_kwds.get("axis", kwargs.get("axis")) return query_compiler.__constructor__( query_compiler._modin_frame._map_...
def call(cls, map_function, reduce_function, **call_kwds): def caller(query_compiler, *args, **kwargs): preserve_index = call_kwds.pop("preserve_index", True) return query_compiler.__constructor__( query_compiler._modin_frame._map_reduce( call_kwds.get("axis") if "axis" i...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def caller(query_compiler, *args, **kwargs): preserve_index = call_kwds.pop("preserve_index", True) axis = call_kwds.get("axis", kwargs.get("axis")) return query_compiler.__constructor__( query_compiler._modin_frame._map_reduce( cls.validate_axis(axis), lambda x: map_function...
def caller(query_compiler, *args, **kwargs): preserve_index = call_kwds.pop("preserve_index", True) return query_compiler.__constructor__( query_compiler._modin_frame._map_reduce( call_kwds.get("axis") if "axis" in call_kwds else kwargs.get("axis"), lambda x: map_function(x, *arg...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def register(cls, map_function, reduce_function=None, **kwargs): if reduce_function is None: reduce_function = map_function return cls.call(map_function, reduce_function, **kwargs)
def register(cls, map_function, reduce_function, **kwargs): return cls.call(map_function, reduce_function, **kwargs)
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def call(cls, reduction_function, **call_kwds): def caller(query_compiler, *args, **kwargs): preserve_index = call_kwds.pop("preserve_index", True) axis = call_kwds.get("axis", kwargs.get("axis")) return query_compiler.__constructor__( query_compiler._modin_frame._fold_reduce( ...
def call(cls, reduction_function, **call_kwds): def caller(query_compiler, *args, **kwargs): return query_compiler.__constructor__( query_compiler._modin_frame._fold_reduce( call_kwds.get("axis") if "axis" in call_kwds else kwargs.get("axis"), lambda x: reduction_...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def caller(query_compiler, *args, **kwargs): preserve_index = call_kwds.pop("preserve_index", True) axis = call_kwds.get("axis", kwargs.get("axis")) return query_compiler.__constructor__( query_compiler._modin_frame._fold_reduce( cls.validate_axis(axis), lambda x: reduction_f...
def caller(query_compiler, *args, **kwargs): return query_compiler.__constructor__( query_compiler._modin_frame._fold_reduce( call_kwds.get("axis") if "axis" in call_kwds else kwargs.get("axis"), lambda x: reduction_function(x, *args, **kwargs), ) )
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def _validate_axis_equality(self, axis: int, force: bool = False): """ Validates internal and external indices of modin_frame at the specified axis. Parameters ---------- axis : 0 or 1 Axis to validate indices along (0 - index, 1 - columns). force : boolean, default False ...
def _validate_axis_equality(self, axis: int, force: bool = False): """ Validates internal and external indices of modin_frame at the specified axis. Parameters ---------- axis : 0 or 1 Axis to validate indices along (0 - index, 1 - columns). force : boolean, default False ...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def _compute_map_reduce_metadata(self, axis, new_parts, preserve_index=True): """ Computes metadata for the result of reduce function. Parameters ---------- axis: int, The axis on which reduce function was applied new_parts: numpy 2D array Partitions with the result of applied f...
def _compute_map_reduce_metadata(self, axis, new_parts): if axis == 0: columns = self.columns index = ["__reduced__"] new_lengths = [1] new_widths = self._column_widths new_dtypes = self._dtypes else: columns = ["__reduced__"] index = self.index ne...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def _fold_reduce(self, axis, func, preserve_index=True): """ Apply function that reduce Manager to series but require knowledge of full axis. Parameters ---------- axis : 0 or 1 The axis to apply the function to (0 - index, 1 - columns). func : callable The funct...
def _fold_reduce(self, axis, func): """ Apply function that reduce Manager to series but require knowledge of full axis. Parameters ---------- axis : 0 or 1 The axis to apply the function to (0 - index, 1 - columns). func : callable The function to reduce the Man...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def _map_reduce(self, axis, map_func, reduce_func=None, preserve_index=True): """ Apply function that will reduce the data to a Pandas Series. Parameters ---------- axis : 0 or 1 0 for columns and 1 for rows. map_func : callable Callable function to map the dataf...
def _map_reduce(self, axis, map_func, reduce_func=None, preserve_index=True): """ Apply function that will reduce the data to a Pandas Series. Parameters ---------- axis : 0 or 1 0 for columns and 1 for rows. map_func : callable Callable function to map the dataf...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def _map(self, func, dtypes=None, validate_index=False, validate_columns=False): """Perform a function that maps across the entire dataset. Pamareters ---------- func : callable The function to apply. dtypes : (optional) The data types for the result. This is an opti...
def _map(self, func, dtypes=None, validate_index=False, validate_columns=False): """Perform a function that maps across the entire dataset. Pamareters ---------- func : callable The function to apply. dtypes : (optional) The data types for the result. This is an opti...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def filter_full_axis(self, axis, func): """Filter data based on the function provided along an entire axis. Args: axis: The axis to filter over. func: The function to use for the filter. This function should filter the data itself. Returns: A new dataframe. """ ...
def filter_full_axis(self, axis, func): """Filter data based on the function provided along an entire axis. Args: axis: The axis to filter over. func: The function to use for the filter. This function should filter the data itself. Returns: A new dataframe. """ ...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def broadcast_apply_select_indices( self, axis, func, other, apply_indices=None, numeric_indices=None, keep_remaining=False, broadcast_all=True, new_index=None, new_columns=None, ): """ Applyies `func` to select indices at specified axis and broadcasts partitions of `...
def broadcast_apply_select_indices( self, axis, func, other, apply_indices=None, numeric_indices=None, keep_remaining=False, broadcast_all=True, new_index=None, new_columns=None, ): """ Applyies `func` to select indices at specified axis and broadcasts partitions of `...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def broadcast_apply_full_axis( self, axis, func, other, new_index=None, new_columns=None, dtypes=None, ): """Broadcast partitions of other dataframe partitions and apply a function along full axis. Parameters ---------- axis : 0 or 1 The axis to apply over (0...
def broadcast_apply_full_axis( self, axis, func, other, new_index=None, new_columns=None, dtypes=None, ): """Broadcast partitions of other dataframe partitions and apply a function along full axis. Parameters ---------- axis : 0 or 1 The axis to apply over (0...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def groupby_reduce( self, axis, by, map_func, reduce_func, new_index=None, new_columns=None ): """Groupby another dataframe and aggregate the result. Args: axis: The axis to groupby and aggregate over. by: The dataframe to group by. map_func: The map component of the aggregation. ...
def groupby_reduce( self, axis, by, map_func, reduce_func, new_index=None, new_columns=None ): """Groupby another dataframe and aggregate the result. Args: axis: The axis to groupby and aggregate over. by: The dataframe to group by. map_func: The map component of the aggregation. ...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def kurt(self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs): axis = self._get_axis_number(axis) if level is not None: func_kwargs = { "skipna": skipna, "level": level, "numeric_only": numeric_only, } return self.__constructor__( ...
def kurt(self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs): axis = self._get_axis_number(axis) if level is not None: func_kwargs = { "skipna": skipna, "level": level, "numeric_only": numeric_only, } return self.__constructor__( ...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def mean(self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs): return self._stat_operation("mean", axis, skipna, level, numeric_only, **kwargs)
def mean(self, axis=None, skipna=None, level=None, numeric_only=None, **kwargs): axis = self._get_axis_number(axis) data = self._validate_dtypes_sum_prod_mean(axis, numeric_only, ignore_axis=False) return data._reduce_dimension( data._query_compiler.mean( axis=axis, skipna=sk...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def _validate_dtypes_min_max(self, axis, numeric_only): # If our DataFrame has both numeric and non-numeric dtypes then # comparisons between these types do not make sense and we must raise a # TypeError. The exception to this rule is when there are datetime and # timedelta objects, in which case we pro...
def _validate_dtypes_min_max(self, axis, numeric_only): # If our DataFrame has both numeric and non-numeric dtypes then # comparisons between these types do not make sense and we must raise a # TypeError. The exception to this rule is when there are datetime and # timedelta objects, in which case we pro...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def _validate_dtypes_sum_prod_mean(self, axis, numeric_only, ignore_axis=False): """ Raise TypeErrors for sum, prod, and mean where necessary. TODO: Add more details for this docstring template. Parameters ---------- What arguments does this function have. [ PARAMETER_NAME: PARAMETERS ...
def _validate_dtypes_sum_prod_mean(self, axis, numeric_only, ignore_axis=False): """ Raise TypeErrors for sum, prod, and mean where necessary. TODO: Add more details for this docstring template. Parameters ---------- What arguments does this function have. [ PARAMETER_NAME: PARAMETERS ...
https://github.com/modin-project/modin/issues/1976
Traceback (most recent call last): File "test.py", line 15, in <module> print(f"modin:\n{modin_df.sum(min_count=1)}") File "modin\pandas\base.py", line 3512, in __str__ return repr(self) File "modin\pandas\series.py", line 307, in __repr__ temp_df = self._build_repr_df(num_rows, num_cols) File "modin\pandas\base.py", l...
Exception
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Use pandas to calculate the correct columns empty_df = ( pandas.DataFrame(columns=self.columns).astype(self.dtypes).describe(**k...
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Use pandas to calculate the correct columns empty_df = ( pandas.DataFrame(columns=self.columns).astype(self.dtypes).describe(**k...
https://github.com/modin-project/modin/issues/2195
df.describe() --------------------------------------------------------------------------- Exception Traceback (most recent call last) /usr/lib/python3.8/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 type_pprinters=self.type_printers, 701 ...
Exception
def _read(cls, filepath_or_buffer, **kwargs): if isinstance(filepath_or_buffer, str): if not cls.file_exists(filepath_or_buffer): return cls.single_worker_read(filepath_or_buffer, **kwargs) filepath_or_buffer = cls.get_path(filepath_or_buffer) elif not cls.pathlib_or_pypath(filepath_...
def _read(cls, filepath_or_buffer, **kwargs): if isinstance(filepath_or_buffer, str): if not cls.file_exists(filepath_or_buffer): return cls.single_worker_read(filepath_or_buffer, **kwargs) filepath_or_buffer = cls.get_path(filepath_or_buffer) elif not cls.pathlib_or_pypath(filepath_...
https://github.com/modin-project/modin/issues/2074
col2 one two three four col2 0 two 1 four Traceback (most recent call last): File "test_read_csv.py", line 47, in <module> df_equals(df_pd, df_pandas) File "/localdisk/amyskov/modin2/modin/pandas/test/utils.py", line 499, in df_equals assert_frame_equal( File "/localdisk/amyskov/miniconda3_2/envs/modin_test3/li...
AssertionError
def sort_rows(self, columns, ascending, ignore_index, na_position): if na_position != "first" and na_position != "last": raise ValueError(f"Unsupported na_position value '{na_position}'") if not isinstance(columns, list): columns = [columns] columns = [self._find_index_or_col(col) for col i...
def sort_rows(self, columns, ascending, ignore_index, na_position): if na_position != "first" and na_position != "last": raise ValueError(f"Unsupported na_position value '{na_position}'") if not isinstance(columns, list): columns = [columns] for col in columns: if col not in self._...
https://github.com/modin-project/modin/issues/2156
Traceback (most recent call last): File "../reproducer.py", line 15, in <module> md_df = pd.DataFrame(data, index=mi_index) File "/localdisk/dchigare/repos/modin_bp/modin/pandas/dataframe.py", line 142, in __init__ self._query_compiler = from_pandas(pandas_df)._query_compiler File "/localdisk/dchigare/repos/modin_bp/mo...
ValueError
def reset_index(self, drop): if drop: exprs = OrderedDict() for c in self.columns: exprs[c] = self.ref(c) return self.__constructor__( columns=self.columns, dtypes=self._dtypes_for_exprs(exprs), op=TransformNode(self, exprs), index_...
def reset_index(self, drop): if drop: exprs = OrderedDict() for c in self.columns: exprs[c] = self.ref(c) return self.__constructor__( columns=self.columns, dtypes=self._dtypes_for_exprs(exprs), op=TransformNode(self, exprs), index_...
https://github.com/modin-project/modin/issues/2156
Traceback (most recent call last): File "../reproducer.py", line 15, in <module> md_df = pd.DataFrame(data, index=mi_index) File "/localdisk/dchigare/repos/modin_bp/modin/pandas/dataframe.py", line 142, in __init__ self._query_compiler = from_pandas(pandas_df)._query_compiler File "/localdisk/dchigare/repos/modin_bp/mo...
ValueError
def _index_name(self, col): if col == "__index__": return None match = re.search("__index__\\d+_(.*)", col) if match: name = match.group(1) if name == "__None__": return None return name return col
def _index_name(self, col): if col.startswith("__index__"): return None return col
https://github.com/modin-project/modin/issues/2156
Traceback (most recent call last): File "../reproducer.py", line 15, in <module> md_df = pd.DataFrame(data, index=mi_index) File "/localdisk/dchigare/repos/modin_bp/modin/pandas/dataframe.py", line 142, in __init__ self._query_compiler = from_pandas(pandas_df)._query_compiler File "/localdisk/dchigare/repos/modin_bp/mo...
ValueError
def from_pandas(cls, df): new_index = df.index new_columns = df.columns # If there is non-trivial index, we put it into columns. # That's what we usually have for arrow tables and execution # result. Unnamed index is renamed to __index__. Also all # columns get 'F_' prefix to handle names unsupp...
def from_pandas(cls, df): new_index = df.index new_columns = df.columns # If there is non-trivial index, we put it into columns. # That's what we usually have for arrow tables and execution # result. Unnamed index is renamed to __index__. Also all # columns get 'F_' prefix to handle names unsupp...
https://github.com/modin-project/modin/issues/2156
Traceback (most recent call last): File "../reproducer.py", line 15, in <module> md_df = pd.DataFrame(data, index=mi_index) File "/localdisk/dchigare/repos/modin_bp/modin/pandas/dataframe.py", line 142, in __init__ self._query_compiler = from_pandas(pandas_df)._query_compiler File "/localdisk/dchigare/repos/modin_bp/mo...
ValueError
def _copartition(self, axis, other, how, sort, force_repartition=False): """ Copartition two dataframes. Parameters ---------- axis : 0 or 1 The axis to copartition along (0 - rows, 1 - columns). other : BasePandasFrame The other dataframes(s) to copartition agai...
def _copartition(self, axis, other, how, sort, force_repartition=False): """ Copartition two dataframes. Parameters ---------- axis : 0 or 1 The axis to copartition along (0 - rows, 1 - columns). other : BasePandasFrame The other dataframes(s) to copartition agai...
https://github.com/modin-project/modin/issues/2134
UserWarning: Distributing <class 'list'> object. This may take some time. In [4]: df Out[4]: --------------------------------------------------------------------------- Exception Traceback (most recent call last) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packa...
Exception
def _read(cls, filepath_or_buffer, **kwargs): if isinstance(filepath_or_buffer, str): if not cls.file_exists(filepath_or_buffer): return cls.single_worker_read(filepath_or_buffer, **kwargs) filepath_or_buffer = cls.get_path(filepath_or_buffer) elif not cls.pathlib_or_pypath(filepath_...
def _read(cls, filepath_or_buffer, **kwargs): if isinstance(filepath_or_buffer, str): if not cls.file_exists(filepath_or_buffer): return cls.single_worker_read(filepath_or_buffer, **kwargs) filepath_or_buffer = cls.get_path(filepath_or_buffer) elif not cls.pathlib_or_pypath(filepath_...
https://github.com/modin-project/modin/issues/1386
Traceback (most recent call last): File "cat_test.py", line 4, in <module> df1 = pd.read_csv("categories.json", dtype={"one": "int64", "two": "category"}) File "/localdisk/gashiman/modin/modin/pandas/io.py", line 111, in parser_func return _read(**kwargs) File "/localdisk/gashiman/modin/modin/pandas/io.py", line 124, i...
ValueError
def groupby_reduce(cls, axis, partitions, by, map_func, reduce_func): mapped_partitions = cls.broadcast_apply( axis, map_func, left=partitions, right=by, other_name="other" ) return cls.map_axis_partitions(axis, mapped_partitions, reduce_func)
def groupby_reduce(cls, axis, partitions, by, map_func, reduce_func): by_parts = np.squeeze(by) if len(by_parts.shape) == 0: by_parts = np.array([by_parts.item()]) [obj.drain_call_queue() for obj in by_parts] new_partitions = np.array( [ [ part.add_to_apply_ca...
https://github.com/modin-project/modin/issues/1376
import modin.pandas as pd import glob files = glob.glob('/path/to/files/*.parquet') df = pd.concat([pd.read_parquet(file) for file in files]) df.reset_index(inplace=True) df.drop(columns=['index', 'DATE', 'STATUS', 'ID', 'ID2],inplace=True) df.groupby(['REPORTING_DATE', 'ENTITY', 'CURRENCY']).sum() UserWarning: Mult...
AttributeError
def broadcast_apply(cls, axis, apply_func, left, right, other_name="r"): """Broadcast the right partitions to left and apply a function. Note: This will often be overridden by implementations. It materializes the entire partitions of the right and applies them to the left through `apply`. Paramete...
def broadcast_apply(cls, axis, apply_func, left, right): """Broadcast the right partitions to left and apply a function. Note: This will often be overridden by implementations. It materializes the entire partitions of the right and applies them to the left through `apply`. Args: axis: The ...
https://github.com/modin-project/modin/issues/1376
import modin.pandas as pd import glob files = glob.glob('/path/to/files/*.parquet') df = pd.concat([pd.read_parquet(file) for file in files]) df.reset_index(inplace=True) df.drop(columns=['index', 'DATE', 'STATUS', 'ID', 'ID2],inplace=True) df.groupby(['REPORTING_DATE', 'ENTITY', 'CURRENCY']).sum() UserWarning: Mult...
AttributeError
def deploy_func(df, apply_func, call_queue_df=None, call_queues_other=None, *others): if call_queue_df is not None and len(call_queue_df) > 0: for call, kwargs in call_queue_df: if isinstance(call, bytes): call = pkl.loads(call) if isinstance(kwargs, bytes): ...
def deploy_func(df, other, apply_func, call_queue_df=None, call_queue_other=None): if call_queue_df is not None and len(call_queue_df) > 0: for call, kwargs in call_queue_df: if isinstance(call, bytes): call = pkl.loads(call) if isinstance(kwargs, bytes): ...
https://github.com/modin-project/modin/issues/1376
import modin.pandas as pd import glob files = glob.glob('/path/to/files/*.parquet') df = pd.concat([pd.read_parquet(file) for file in files]) df.reset_index(inplace=True) df.drop(columns=['index', 'DATE', 'STATUS', 'ID', 'ID2],inplace=True) df.groupby(['REPORTING_DATE', 'ENTITY', 'CURRENCY']).sum() UserWarning: Mult...
AttributeError
def broadcast_apply(cls, axis, apply_func, left, right, other_name="r"): def mapper(df, others): other = pandas.concat(others, axis=axis ^ 1) return apply_func(df, **{other_name: other}) client = _get_global_client() return np.array( [ [ PandasOnDaskFrame...
def broadcast_apply(cls, axis, apply_func, left, right): client = _get_global_client() right_parts = np.squeeze(right) if len(right_parts.shape) == 0: right_parts = np.array([right_parts.item()]) assert len(right_parts.shape) == 1, ( "Invalid broadcast partitions shape {}\n{}".format( ...
https://github.com/modin-project/modin/issues/1376
import modin.pandas as pd import glob files = glob.glob('/path/to/files/*.parquet') df = pd.concat([pd.read_parquet(file) for file in files]) df.reset_index(inplace=True) df.drop(columns=['index', 'DATE', 'STATUS', 'ID', 'ID2],inplace=True) df.groupby(['REPORTING_DATE', 'ENTITY', 'CURRENCY']).sum() UserWarning: Mult...
AttributeError
def func(df, apply_func, call_queue_df=None, call_queues_other=None, *others): if call_queue_df is not None and len(call_queue_df) > 0: for call, kwargs in call_queue_df: if isinstance(call, ray.ObjectID): call = ray.get(call) if isinstance(kwargs, ray.ObjectID): ...
def func(df, other, apply_func, call_queue_df=None, call_queue_other=None): if call_queue_df is not None and len(call_queue_df) > 0: for call, kwargs in call_queue_df: if isinstance(call, ray.ObjectID): call = ray.get(call) if isinstance(kwargs, ray.ObjectID): ...
https://github.com/modin-project/modin/issues/1376
import modin.pandas as pd import glob files = glob.glob('/path/to/files/*.parquet') df = pd.concat([pd.read_parquet(file) for file in files]) df.reset_index(inplace=True) df.drop(columns=['index', 'DATE', 'STATUS', 'ID', 'ID2],inplace=True) df.groupby(['REPORTING_DATE', 'ENTITY', 'CURRENCY']).sum() UserWarning: Mult...
AttributeError
def broadcast_apply(cls, axis, apply_func, left, right, other_name="r"): def mapper(df, others): other = pandas.concat(others, axis=axis ^ 1) return apply_func(df, **{other_name: other}) mapper = ray.put(mapper) new_partitions = np.array( [ [ PandasOnRayF...
def broadcast_apply(cls, axis, apply_func, left, right): map_func = ray.put(apply_func) right_parts = np.squeeze(right) if len(right_parts.shape) == 0: right_parts = np.array([right_parts.item()]) assert len(right_parts.shape) == 1, ( "Invalid broadcast partitions shape {}\n{}".format( ...
https://github.com/modin-project/modin/issues/1376
import modin.pandas as pd import glob files = glob.glob('/path/to/files/*.parquet') df = pd.concat([pd.read_parquet(file) for file in files]) df.reset_index(inplace=True) df.drop(columns=['index', 'DATE', 'STATUS', 'ID', 'ID2],inplace=True) df.groupby(['REPORTING_DATE', 'ENTITY', 'CURRENCY']).sum() UserWarning: Mult...
AttributeError
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to groupby. le...
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to groupby. le...
https://github.com/modin-project/modin/issues/1376
import modin.pandas as pd import glob files = glob.glob('/path/to/files/*.parquet') df = pd.concat([pd.read_parquet(file) for file in files]) df.reset_index(inplace=True) df.drop(columns=['index', 'DATE', 'STATUS', 'ID', 'ID2],inplace=True) df.groupby(['REPORTING_DATE', 'ENTITY', 'CURRENCY']).sum() UserWarning: Mult...
AttributeError
def concat(cls, axis, left_parts, right_parts): """Concatenate the blocks with another set of blocks. Note: Assumes that the blocks are already the same shape on the dimension being concatenated. A ValueError will be thrown if this condition is not met. Args: axis: The axis to conc...
def concat(cls, axis, left_parts, right_parts): """Concatenate the blocks with another set of blocks. Note: Assumes that the blocks are already the same shape on the dimension being concatenated. A ValueError will be thrown if this condition is not met. Args: axis: The axis to conc...
https://github.com/modin-project/modin/issues/1679
Traceback (most recent call last): File "test_setitem6.py", line 4, in <module> df1.loc["row1"]["col1"] = 11 File "/localdisk/gashiman/modin/modin/pandas/series.py", line 335, in __setitem__ self._parent.loc[self.name] = self File "/localdisk/gashiman/modin/modin/pandas/indexing.py", line 279, in __setitem__ super(_Loc...
ValueError
def make_wrapped_class(local_cls: type, rpyc_wrapper_name: str): """ Replaces given local class in its module with a replacement class which has __new__ defined (a dual-nature class). This new class is instantiated differently depending on whether this is done in remote or local context. In loc...
def make_wrapped_class(local_cls: type, rpyc_wrapper_name: str): """ Replaces given local class in its module with a descendant class which has __new__ overridden (a dual-nature class). This new class is instantiated differently depending o whether this is done in remote context or local. In l...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def _binary_op(self, op, other, **kwargs): # _axis indicates the operator will use the default axis if kwargs.pop("_axis", None) is None: if kwargs.get("axis", None) is not None: kwargs["axis"] = axis = self._get_axis_number(kwargs.get("axis", None)) else: kwargs["axis"] ...
def _binary_op(self, op, other, **kwargs): # _axis indicates the operator will use the default axis if kwargs.pop("_axis", None) is None: if kwargs.get("axis", None) is not None: kwargs["axis"] = axis = self._get_axis_number(kwargs.get("axis", None)) else: kwargs["axis"] ...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def _default_to_pandas(self, op, *args, **kwargs): """Helper method to use default pandas function""" empty_self_str = "" if not self.empty else " for empty DataFrame" ErrorMessage.default_to_pandas( "`{}.{}`{}".format( type(self).__name__, op if isinstance(op, str) else op._...
def _default_to_pandas(self, op, *args, **kwargs): """Helper method to use default pandas function""" empty_self_str = "" if not self.empty else " for empty DataFrame" ErrorMessage.default_to_pandas( "`{}.{}`{}".format( self.__name__, op if isinstance(op, str) else op.__name_...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def _get_axis_number(self, axis): return ( getattr(pandas, type(self).__name__)()._get_axis_number(axis) if axis is not None else 0 )
def _get_axis_number(self, axis): return ( getattr(pandas, self.__name__)()._get_axis_number(axis) if axis is not None else 0 )
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs): """Return whether all elements are True over requested axis Note: If axis=None or axis=0, this call applies df.all(axis=1) to the transpose of df. """ if axis is not None: axis = self._get_axis_number(...
def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs): """Return whether all elements are True over requested axis Note: If axis=None or axis=0, this call applies df.all(axis=1) to the transpose of df. """ if axis is not None: axis = self._get_axis_number(...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def any(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs): """Return whether any elements are True over requested axis Note: If axis=None or axis=0, this call applies on the column partitions, otherwise operates on row partitions """ if axis is not None: axis ...
def any(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs): """Return whether any elements are True over requested axis Note: If axis=None or axis=0, this call applies on the column partitions, otherwise operates on row partitions """ if axis is not None: axis ...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def rename_axis( self, mapper=None, index=None, columns=None, axis=None, copy=True, inplace=False ): kwargs = { "index": index, "columns": columns, "axis": axis, "copy": copy, "inplace": inplace, } axes, kwargs = getattr( pandas, type(self).__name__ )(...
def rename_axis( self, mapper=None, index=None, columns=None, axis=None, copy=True, inplace=False ): kwargs = { "index": index, "columns": columns, "axis": axis, "copy": copy, "inplace": inplace, } axes, kwargs = getattr(pandas, self.__name__)()._construct_axes_fr...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def __getitem__(self, key): if len(self) == 0: return self._default_to_pandas("__getitem__", key) # see if we can slice the rows # This lets us reuse code in Pandas to error check indexer = convert_to_index_sliceable( getattr(pandas, type(self).__name__)(index=self.index), key ) ...
def __getitem__(self, key): if len(self) == 0: return self._default_to_pandas("__getitem__", key) # see if we can slice the rows # This lets us reuse code in Pandas to error check indexer = convert_to_index_sliceable( getattr(pandas, self.__name__)(index=self.index), key ) if ind...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def apply(self, func, axis=0, raw=False, result_type=None, args=(), **kwds): axis = self._get_axis_number(axis) query_compiler = super(DataFrame, self).apply( func, axis=axis, raw=raw, result_type=result_type, args=args, **kwds ) if not isinstance(query_compiler, type(self._query_compiler)): ...
def apply(self, func, axis=0, raw=False, result_type=None, args=(), **kwds): axis = self._get_axis_number(axis) query_compiler = super(DataFrame, self).apply( func, axis=axis, raw=raw, result_type=result_type, args=args, **kwds ) if not isinstance(query_compiler, type(self._query_compiler)): ...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def eval(self, expr, inplace=False, **kwargs): """Evaluate a Python expression as a string using various backends. Args: expr: The expression to evaluate. This string cannot contain any Python statements, only Python expressions. parser: The parser to use to construct the syntax tre...
def eval(self, expr, inplace=False, **kwargs): """Evaluate a Python expression as a string using various backends. Args: expr: The expression to evaluate. This string cannot contain any Python statements, only Python expressions. parser: The parser to use to construct the syntax tre...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def apply(self, func, convert_dtype=True, args=(), **kwds): # apply and aggregate have slightly different behaviors, so we have to use # each one separately to determine the correct return type. In the case of # `agg`, the axis is set, but it is not required for the computation, so we use # it to determ...
def apply(self, func, convert_dtype=True, args=(), **kwds): # apply and aggregate have slightly different behaviors, so we have to use # each one separately to determine the correct return type. In the case of # `agg`, the axis is set, but it is not required for the computation, so we use # it to determ...
https://github.com/modin-project/modin/issues/1872
Traceback (most recent call last): File "1.py", line 14, in <module> ref = df["a"].add(df["b"]) File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File "/localdisk/ilyaenko/modin/modin/pandas/series.py", line 376, in add return super(Series, new_self).add( File...
RecursionError
def __repr__(self): num_rows = pandas.get_option("max_rows") or 60 num_cols = pandas.get_option("max_columns") or 20 temp_df = self._build_repr_df(num_rows, num_cols) if isinstance(temp_df, pandas.DataFrame) and not temp_df.empty: temp_df = temp_df.iloc[:, 0] temp_str = repr(temp_df) if ...
def __repr__(self): num_rows = pandas.get_option("max_rows") or 60 num_cols = pandas.get_option("max_columns") or 20 temp_df = self._build_repr_df(num_rows, num_cols) if isinstance(temp_df, pandas.DataFrame): temp_df = temp_df.iloc[:, 0] temp_str = repr(temp_df) if self.name is not None:...
https://github.com/modin-project/modin/issues/1647
Traceback (most recent call last): File "t2.py", line 5, in <module> print(s) File "C:\Users\dchigare\Desktop\REPOS\modin\modin\pandas\base.py", line 3471, in __str__ return repr(self) File "C:\Users\dchigare\Desktop\REPOS\modin\modin\pandas\series.py", line 298, in __repr__ temp_df = temp_df.iloc[:, 0] File "C:\Progra...
IndexError
def __getattribute__(self, name): if name in _LOCAL_ATTRS: # never proxy special attributes, always get them from the class type return super().__getattribute__(name) else: try: # Go for proxying class-level attributes first; # make sure to check for attribute in ...
def __getattribute__(self, name): if name in _LOCAL_ATTRS: # never proxy special attributes, always get them from the class type res = object.__getattribute__(self, name) else: try: # Go for proxying class-level attributes first; # make sure to check for attribute...
https://github.com/modin-project/modin/issues/1873
Traceback (most recent call last): File "2.py", line 15, in <module> ref = df.groupby("b").size() File "/localdisk/ilyaenko/modin/modin/pandas/groupby.py", line 420, in size work_object = SeriesGroupBy( TypeError: type.__new__(SeriesGroupBy): SeriesGroupBy is not a subtype of type
TypeError
def make_proxy_cls( remote_cls: netref.BaseNetref, origin_cls: type, override: type, cls_name: str = None, ): """ Makes a new class type which inherits from <origin_cls> (for isinstance() and issubtype()), takes methods from <override> as-is and proxy all requests for other members to <remot...
def make_proxy_cls( remote_cls: netref.BaseNetref, origin_cls: type, override: type, cls_name: str = None, ): """ Makes a new class type which inherits from <origin_cls> (for isinstance() and issubtype()), takes methods from <override> as-is and proxy all requests for other members to <remot...
https://github.com/modin-project/modin/issues/1873
Traceback (most recent call last): File "2.py", line 15, in <module> ref = df.groupby("b").size() File "/localdisk/ilyaenko/modin/modin/pandas/groupby.py", line 420, in size work_object = SeriesGroupBy( TypeError: type.__new__(SeriesGroupBy): SeriesGroupBy is not a subtype of type
TypeError
def __getattribute__(self, name): """ Implement "default" resolution order to override whatever __getattribute__ a parent being wrapped may have defined, but only look up on own __dict__ without looking into ancestors' ones, because we copy them in __prepare__. Effectively, any attributes not curre...
def __getattribute__(self, name): """ Implement "default" resolution order to override whatever __getattribute__ a parent being wrapped may have defined, but only look up on own __dict__ without looking into ancestors' ones, because we copy them in __prepare__. Effectively, any attributes not curre...
https://github.com/modin-project/modin/issues/1873
Traceback (most recent call last): File "2.py", line 15, in <module> ref = df.groupby("b").size() File "/localdisk/ilyaenko/modin/modin/pandas/groupby.py", line 420, in size work_object = SeriesGroupBy( TypeError: type.__new__(SeriesGroupBy): SeriesGroupBy is not a subtype of type
TypeError
def apply(self, func, axis, *args, **kwargs): """Apply func across given axis. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ # if any of args contain modin object, we should # convert it to pand...
def apply(self, func, axis, *args, **kwargs): """Apply func across given axis. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ if isinstance(func, str): return self._apply_text_func_elementwis...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _apply_text_func_elementwise(self, func, axis, *args, **kwargs): """Apply func passed as str across given axis in elementwise manner. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ assert isinsta...
def _apply_text_func_elementwise(self, func, axis, *args, **kwargs): """Apply func passed as str across given axis in elementwise manner. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ assert isinsta...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _dict_func(self, func, axis, *args, **kwargs): """Apply function to certain indices across given axis. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ if "axis" not in kwargs: kwargs["axis...
def _dict_func(self, func, axis, *args, **kwargs): """Apply function to certain indices across given axis. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ if "axis" not in kwargs: kwargs["axis...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _list_like_func(self, func, axis, *args, **kwargs): """Apply list-like function across given axis. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ # When the function is list-like, the function na...
def _list_like_func(self, func, axis, *args, **kwargs): """Apply list-like function across given axis. Args: func: The function to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ # When the function is list-like, the function na...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _callable_func(self, func, axis, *args, **kwargs): """Apply callable functions across given axis. Args: func: The functions to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ func = wrap_udf_function(func) new_modin_fram...
def _callable_func(self, func, axis, *args, **kwargs): """Apply callable functions across given axis. Args: func: The functions to apply. axis: Target axis to apply the function along. Returns: A new PandasQueryCompiler. """ if isinstance(pandas.DataFrame().apply(func), pan...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _set_axis(self, axis, new_axis, cache_only=False): """Replaces the current labels at the specified axis with the new one Parameters ---------- axis : int, Axis to set labels along new_axis : Index, The replacement labels cache_only : bool, Whe...
def _set_axis(self, axis, new_axis): """Replaces the current labels at the specified axis with the new one Parameters ---------- axis : int, Axis to set labels along new_axis : Index, The replacement labels """ if axis: self._set_columns(new_axis) ...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _validate_axis_equality(self, axis: int, force: bool = False): """ Validates internal and external indices of modin_frame at the specified axis. Parameters ---------- axis : int, Axis to validate indices along force : bool, Whether to update external indices ...
def _validate_axis_equality(self, axis: int): """ Validates internal and external indices of modin_frame at the specified axis. Parameters ---------- axis : int, Axis to validate indices along """ internal_axis = self._frame_mgr_cls.get_indices( axis, self._partition...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _validate_internal_indices(self, mode=None, **kwargs): """ Validates and optionally updates internal and external indices of modin_frame in specified mode. There is 3 modes supported: 1. "reduced" - force validates on that axes where external indices is ["__reduced__"] 2. "al...
def _validate_internal_indices(self, mode=None, **kwargs): """ Validates and optionally updates internal and external indices of modin_frame in specified mode. There is 3 modes supported: 1. "reduced" - validates and updates indices on that axes where external indices is ["__reduced__"] ...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def apply( self, func, axis=0, broadcast=None, raw=False, reduce=None, result_type=None, convert_dtype=True, args=(), **kwds, ): """Apply a function along input axis of DataFrame. Args: func: The function to apply axis: The axis over which to apply the fu...
def apply( self, func, axis=0, broadcast=None, raw=False, reduce=None, result_type=None, convert_dtype=True, args=(), **kwds, ): """Apply a function along input axis of DataFrame. Args: func: The function to apply axis: The axis over which to apply the fu...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def _apply_agg_function(self, f, drop=True, *args, **kwargs): """Perform aggregation and combine stages based on a given function. Args: f: The function to apply to each group. Returns: A new combined DataFrame with the result of all groups. """ assert callable(f), "'{0}' object i...
def _apply_agg_function(self, f, drop=True, *args, **kwargs): """Perform aggregation and combine stages based on a given function. Args: f: The function to apply to each group. Returns: A new combined DataFrame with the result of all groups. """ assert callable(f), "'{0}' object i...
https://github.com/modin-project/modin/issues/1154
FutureWarning: pandas.core.index is deprecated and will be removed in a future version. The public classes are available in the top-level namespace. UserWarning: User-defined function verification is still under development in Modin. The function provided is not verified. empty ! Traceback (most recent call last): Fil...
Exception
def concat( objs: Union[ Iterable[FrameOrSeriesUnion], Mapping[Optional[Hashable], FrameOrSeriesUnion] ], axis=0, join="outer", ignore_index: bool = False, keys=None, levels=None, names=None, verify_integrity: bool = False, sort: bool = False, copy: bool = True, ) -> ...
def concat( objs: Union[ Iterable[FrameOrSeriesUnion], Mapping[Optional[Hashable], FrameOrSeriesUnion] ], axis=0, join="outer", ignore_index: bool = False, keys=None, levels=None, names=None, verify_integrity: bool = False, sort: bool = False, copy: bool = True, ) -> ...
https://github.com/modin-project/modin/issues/1631
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-0ed75db51eaa> in <module> 6 surveys = {'1': df_wave1, '2': df_wave2, '3': df_wave3, } 7 ----> 8 df_all = pd.concat(surveys, sort=False) ~/.virtualenv...
ValueError
def __repr__(self): from pandas.io.formats import console num_rows = pandas.get_option("display.max_rows") or 10 num_cols = pandas.get_option("display.max_columns") or 20 if pandas.get_option("display.max_columns") is None and pandas.get_option( "display.expand_frame_repr" ): width,...
def __repr__(self): from pandas.io.formats import console num_rows = pandas.get_option("display.max_rows") or 10 num_cols = pandas.get_option("display.max_columns") or 20 if pandas.get_option("display.max_columns") is None and pandas.get_option( "display.expand_frame_repr" ): width,...
https://github.com/modin-project/modin/issues/1774
Python 3.8.3 (default, Jun 9 2020, 17:49:41) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. import modin.pandas as pandas pandas.DataFrame() UserWarning: Distributing <class 'NoneType'> object. This may take some time. Empty DataFrame Columns: [] Index: [] pandas.set_option...
IndexError
def __getitem__(self, key): if callable(key): return self.__getitem__(key(self.df)) row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) if isinstance(row_loc, slice) and row_loc == slice(None): # If we're only slicing columns, handle the case with `__getitem__` ...
def __getitem__(self, key): row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) if isinstance(row_loc, slice) and row_loc == slice(None): # If we're only slicing columns, handle the case with `__getitem__` if not isinstance(col_loc, slice): # Boolean indexers...
https://github.com/modin-project/modin/issues/1775
Python 3.8.3 (default, Jun 9 2020, 17:49:41) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. import modin.pandas as pandas foo = pandas.DataFrame({"col": [1,2,3,4]}) UserWarning: Distributing <class 'dict'> object. This may take some time. foo col 0 1 1 2 2 3 3 4...
TypeError
def __getitem__(self, key): if callable(key): return self.__getitem__(key(self.df)) row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) self._check_dtypes(row_loc) self._check_dtypes(col_loc) row_lookup, col_lookup = self._compute_lookup(row_loc, col_loc) result...
def __getitem__(self, key): row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) self._check_dtypes(row_loc) self._check_dtypes(col_loc) row_lookup, col_lookup = self._compute_lookup(row_loc, col_loc) result = super(_iLocIndexer, self).__getitem__(row_lookup, col_lookup, ndi...
https://github.com/modin-project/modin/issues/1775
Python 3.8.3 (default, Jun 9 2020, 17:49:41) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. import modin.pandas as pandas foo = pandas.DataFrame({"col": [1,2,3,4]}) UserWarning: Distributing <class 'dict'> object. This may take some time. foo col 0 1 1 2 2 3 3 4...
TypeError
def merge(self, right, **kwargs): """ Merge DataFrame or named Series objects with a database-style join. Parameters ---------- right : PandasQueryCompiler The query compiler of the right DataFrame to merge with. Returns ------- PandasQueryCompiler A new query compiler ...
def merge(self, right, **kwargs): """ Merge DataFrame or named Series objects with a database-style join. Parameters ---------- right : PandasQueryCompiler The query compiler of the right DataFrame to merge with. Returns ------- PandasQueryCompiler A new query compiler ...
https://github.com/modin-project/modin/issues/1771
Traceback (most recent call last): File "merge_test.py", line 6, in <module> df3 = df1.merge(df2, on='name', how='inner') File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 1540, in merge return result.reset_index(drop=True) if is_reset_index else result File "/localdisk/gashiman/modin/modin/pandas/base.p...
Exception
def sort_index(self, **kwargs): """Sorts the data with respect to either the columns or the indices. Returns: QueryCompiler containing the data sorted by columns or indices. """ axis = kwargs.pop("axis", 0) level = kwargs.pop("level", None) sort_remaining = kwargs.pop("sort_remaining", ...
def sort_index(self, **kwargs): """Sorts the data with respect to either the columns or the indices. Returns: QueryCompiler containing the data sorted by columns or indices. """ axis = kwargs.pop("axis", 0) # sort_index can have ascending be None and behaves as if it is False. # sort_va...
https://github.com/modin-project/modin/issues/1771
Traceback (most recent call last): File "merge_test.py", line 6, in <module> df3 = df1.merge(df2, on='name', how='inner') File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 1540, in merge return result.reset_index(drop=True) if is_reset_index else result File "/localdisk/gashiman/modin/modin/pandas/base.p...
Exception
def map_func(left, right=right, kwargs=kwargs): return pandas.merge(left, right, **kwargs)
def map_func(df, n=n, keep=keep, columns=columns): if columns is None: return pandas.DataFrame( getattr(pandas.Series, sort_type)(df.squeeze(axis=1), n=n, keep=keep) ) return getattr(pandas.DataFrame, sort_type)(df, n=n, columns=columns, keep=keep)
https://github.com/modin-project/modin/issues/1771
Traceback (most recent call last): File "merge_test.py", line 6, in <module> df3 = df1.merge(df2, on='name', how='inner') File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 1540, in merge return result.reset_index(drop=True) if is_reset_index else result File "/localdisk/gashiman/modin/modin/pandas/base.p...
Exception
def length_fn_pandas(df): assert isinstance(df, pandas.DataFrame) return len(df) if len(df) > 0 else 0
def length_fn_pandas(df): assert isinstance(df, pandas.DataFrame) return len(df) if len(df.columns) > 0 else 0
https://github.com/modin-project/modin/issues/1771
Traceback (most recent call last): File "merge_test.py", line 6, in <module> df3 = df1.merge(df2, on='name', how='inner') File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 1540, in merge return result.reset_index(drop=True) if is_reset_index else result File "/localdisk/gashiman/modin/modin/pandas/base.p...
Exception
def width_fn_pandas(df): assert isinstance(df, pandas.DataFrame) return len(df.columns) if len(df.columns) > 0 else 0
def width_fn_pandas(df): assert isinstance(df, pandas.DataFrame) return len(df.columns) if len(df) > 0 else 0
https://github.com/modin-project/modin/issues/1771
Traceback (most recent call last): File "merge_test.py", line 6, in <module> df3 = df1.merge(df2, on='name', how='inner') File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 1540, in merge return result.reset_index(drop=True) if is_reset_index else result File "/localdisk/gashiman/modin/modin/pandas/base.p...
Exception
def sort_index( self, axis=0, level=None, ascending=True, inplace=False, kind="quicksort", na_position="last", sort_remaining=True, ignore_index: bool = False, ): """Sort a DataFrame by one of the indices (columns or index). Args: axis: The axis to sort over. ...
def sort_index( self, axis=0, level=None, ascending=True, inplace=False, kind="quicksort", na_position="last", sort_remaining=True, ignore_index: bool = False, ): """Sort a DataFrame by one of the indices (columns or index). Args: axis: The axis to sort over. ...
https://github.com/modin-project/modin/issues/1771
Traceback (most recent call last): File "merge_test.py", line 6, in <module> df3 = df1.merge(df2, on='name', how='inner') File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 1540, in merge return result.reset_index(drop=True) if is_reset_index else result File "/localdisk/gashiman/modin/modin/pandas/base.p...
Exception
def merge( self, right, how="inner", on=None, left_on=None, right_on=None, left_index=False, right_index=False, sort=False, suffixes=("_x", "_y"), copy=True, indicator=False, validate=None, ): """ Merge DataFrame or named Series objects with a database-style j...
def merge( self, right, how="inner", on=None, left_on=None, right_on=None, left_index=False, right_index=False, sort=False, suffixes=("_x", "_y"), copy=True, indicator=False, validate=None, ): """ Merge DataFrame or named Series objects with a database-style j...
https://github.com/modin-project/modin/issues/1771
Traceback (most recent call last): File "merge_test.py", line 6, in <module> df3 = df1.merge(df2, on='name', how='inner') File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 1540, in merge return result.reset_index(drop=True) if is_reset_index else result File "/localdisk/gashiman/modin/modin/pandas/base.p...
Exception
def _is_monotonic(self, func_type=None): funcs = { "increasing": lambda df: df.is_monotonic_increasing, "decreasing": lambda df: df.is_monotonic_decreasing, } monotonic_fn = funcs.get(func_type, funcs["increasing"]) def is_monotonic_map(df): df = df.squeeze(axis=1) retu...
def _is_monotonic(self, type=None): funcs = { "increasing": lambda df: df.is_monotonic_increasing, "decreasing": lambda df: df.is_monotonic_decreasing, } monotonic_fn = funcs.get(type, funcs["increasing"]) def is_monotonic_map(df): df = df.squeeze(axis=1) return [monoto...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def is_monotonic_decreasing(self): return self._is_monotonic(func_type="decreasing")
def is_monotonic_decreasing(self): return self._is_monotonic(type="decreasing")
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def nsmallest(self, *args, **kwargs): return self.nsort(sort_type="nsmallest", *args, **kwargs)
def nsmallest(self, n, columns=None, keep="first"): def map_func(df, n=n, keep=keep, columns=columns): if columns is None: return pandas.DataFrame( pandas.Series.nsmallest(df.squeeze(axis=1), n=n, keep=keep) ) return pandas.DataFrame.nsmallest(df, n=n, columns...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def map_func(df, n=n, keep=keep, columns=columns): if columns is None: return pandas.DataFrame( getattr(pandas.Series, sort_type)(df.squeeze(axis=1), n=n, keep=keep) ) return getattr(pandas.DataFrame, sort_type)(df, n=n, columns=columns, keep=keep)
def map_func(df, n=n, keep=keep, columns=columns): if columns is None: return pandas.DataFrame( pandas.Series.nsmallest(df.squeeze(axis=1), n=n, keep=keep) ) return pandas.DataFrame.nsmallest(df, n=n, columns=columns, keep=keep)
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def call(cls, func, *call_args, **call_kwds): def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( ...
def call(cls, func, *call_args, **call_kwds): def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( ...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( "Invalid broadcast argument for `broadcast_apply`, too m...
def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( "Invalid broadcast argument for `broadcast_apply`, too m...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def call(cls, map_func, reduce_func, *call_args, **call_kwds): def caller( query_compiler, by, axis, groupby_args, map_args, reduce_args=None, numeric_only=True, drop=False, ): assert isinstance(by, type(query_compiler)), ( "Can...
def call(cls, map_func, reduce_func, *call_args, **call_kwds): def caller( query_compiler, by, axis, groupby_args, map_args, reduce_args=None, numeric_only=True, drop=False, ): assert isinstance(by, type(query_compiler)), ( "Can...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def caller( query_compiler, by, axis, groupby_args, map_args, reduce_args=None, numeric_only=True, drop=False, ): assert isinstance(by, type(query_compiler)), ( "Can only use groupby reduce with another Query Compiler" ) assert axis == 0, "Can only groupby reduce with...
def caller( query_compiler, by, axis, groupby_args, map_args, reduce_args=None, numeric_only=True, drop=False, ): assert isinstance(by, type(query_compiler)), ( "Can only use groupby reduce with another Query Compiler" ) assert axis == 0, "Can only groupby reduce with...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def __init__( self, partitions, index, columns, row_lengths=None, column_widths=None, dtypes=None, validate_axes: Union[bool, str] = False, ): """Initialize a dataframe. Parameters ---------- partitions : A 2D NumPy array of partitions. Must contain partition objects...
def __init__( self, partitions, index, columns, row_lengths=None, column_widths=None, dtypes=None, ): """Initialize a dataframe. Args: partitions: A 2D NumPy array of partitions. Must contain partition objects. index: The index object for the dataframe. Converts to a...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def _compute_map_reduce_metadata(self, axis, new_parts): if axis == 0: columns = self.columns index = ["__reduced__"] new_lengths = [1] new_widths = self._column_widths new_dtypes = self._dtypes else: columns = ["__reduced__"] index = self.index ne...
def _compute_map_reduce_metadata(self, axis, new_parts): if axis == 0: columns = self.columns index = ["__reduced__"] new_lengths = [1] new_widths = self._column_widths new_dtypes = self._dtypes else: columns = ["__reduced__"] index = self.index ne...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def _map_reduce(self, axis, map_func, reduce_func=None, preserve_index=True): """ Apply function that will reduce the data to a Pandas Series. Parameters ---------- axis : 0 or 1 0 for columns and 1 for rows. map_func : callable Callable function to map the dataf...
def _map_reduce(self, axis, map_func, reduce_func=None, preserve_index=True): """ Apply function that will reduce the data to a Pandas Series. Parameters ---------- axis : 0 or 1 0 for columns and 1 for rows. map_func : callable Callable function to map the dataf...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def _apply_full_axis( self, axis, func, new_index=None, new_columns=None, dtypes=None, ): """ Perform a function across an entire axis. Parameters ---------- axis : 0 or 1 The axis to apply over (0 - rows, 1 - columns). func : callable The...
def _apply_full_axis( self, axis, func, new_index=None, new_columns=None, dtypes=None, ): """ Perform a function across an entire axis. Parameters ---------- axis : 0 or 1 The axis to apply over (0 - rows, 1 - columns). func : callable The...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def broadcast_apply(self, axis, func, other, preserve_labels=True, dtypes=None): """Broadcast partitions of other dataframe partitions and apply a function. Args: axis: The axis to broadcast over. func: The function to apply. other: The Modin DataFrame to broadcast. preserve_lab...
def broadcast_apply(self, axis, func, other, preserve_labels=True, dtypes=None): """Broadcast partitions of other dataframe partitions and apply a function. Args: axis: The axis to broadcast over. func: The function to apply. other: The Modin DataFrame to broadcast. preserve_lab...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def to_pandas(self): """Converts Modin DataFrame to Pandas DataFrame. Returns: Pandas DataFrame. """ df = self._frame_mgr_cls.to_pandas(self._partitions) if df.empty: if len(self.columns) != 0: df = pandas.DataFrame(columns=self.columns) else: df = pa...
def to_pandas(self): """Converts Modin DataFrame to Pandas DataFrame. Returns: Pandas DataFrame. """ df = self._frame_mgr_cls.to_pandas(self._partitions) if df.empty: if len(self.columns) != 0: df = pandas.DataFrame(columns=self.columns) else: df = pa...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def to_sql(cls, qc, **kwargs): """Write records stored in a DataFrame to a SQL database. Args: qc: the query compiler of the DF that we want to run to_sql on kwargs: parameters for pandas.to_sql(**kwargs) """ # we first insert an empty DF in order to create the full table in the database...
def to_sql(cls, qc, **kwargs): """Write records stored in a DataFrame to a SQL database. Args: qc: the query compiler of the DF that we want to run to_sql on kwargs: parameters for pandas.to_sql(**kwargs) """ # we first insert an empty DF in order to create the full table in the database...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def __getitem__(self, key): kwargs = self._kwargs.copy() # Most of time indexing DataFrameGroupBy results in another DataFrameGroupBy object unless circumstances are # special in which case SeriesGroupBy has to be returned. Such circumstances are when key equals to a single # column name and is not a li...
def __getitem__(self, key): kwargs = self._kwargs.copy() # Most of time indexing DataFrameGroupBy results in another DataFrameGroupBy object unless circumstances are # special in which case SeriesGroupBy has to be returned. Such circumstances are when key equals to a single # column name and is not a li...
https://github.com/modin-project/modin/issues/1734
pd_res: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res_partitions: population GDP alpha-2 France 65000000 2583560 FR Italy 59000000 1937894 IT Malta 434000 12011 MT md_res: distributed...
IndexError
def sample( self, n=None, frac=None, replace=False, weights=None, random_state=None, axis=None, ): """Returns a random sample of items from an axis of object. Args: n: Number of items from axis to return. Cannot be used with frac. Default = 1 if frac = None. ...
def sample( self, n=None, frac=None, replace=False, weights=None, random_state=None, axis=None, ): """Returns a random sample of items from an axis of object. Args: n: Number of items from axis to return. Cannot be used with frac. Default = 1 if frac = None. ...
https://github.com/modin-project/modin/issues/1692
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-4-667e79aa734e> in <module> 1 rng = np.random.RandomState(42) 2 df = mpd.DataFrame(np.random.rand(100, 3)) ----> 3 df = df.sample(n=50, random_state=rng)...
AttributeError
def __getitem__(self, key): row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) if isinstance(row_loc, slice) and row_loc == slice(None): # If we're only slicing columns, handle the case with `__getitem__` if not isinstance(col_loc, slice): # Boolean indexers...
def __getitem__(self, key): row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) if isinstance(row_loc, slice) and row_loc == slice(None): # If we're only slicing columns, handle the case with `__getitem__` if not isinstance(col_loc, slice): # Boolean indexers...
https://github.com/modin-project/modin/issues/1456
TypeError Traceback (most recent call last) <ipython-input-2-ad6eab4f4683> in <module>() 4 np.array(['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two'])] 5 df = pd.DataFrame(np.random.randn(8, 4), index=arrays).T ----> 6 df.loc[df.index>2,:] /usr/local/lib/python3.6/di...
TypeError
def copy_df_for_func(func): """ Create a function that copies the dataframe, likely because `func` is inplace. Parameters ---------- func : callable The function, usually updates a dataframe inplace. Returns ------- callable A callable function to be applied in the part...
def copy_df_for_func(func): """Create a function that copies the dataframe, likely because `func` is inplace. Args: func: The function, usually updates a dataframe inplace. Returns: A callable function to be applied in the partitions """ def caller(df, *args, **kwargs): df...
https://github.com/modin-project/modin/issues/1557
import modin.pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [400, 500, 600]}) new_df = pd.DataFrame({'B': [4, 5, 6], 'C': [7, 8, 9]}) df.update(new_df) df IndexError Traceback (most recent call last) python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 ...
IndexError
def call(cls, func, *call_args, **call_kwds): def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( ...
def call(cls, func, *call_args, **call_kwds): def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( ...
https://github.com/modin-project/modin/issues/1557
import modin.pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [400, 500, 600]}) new_df = pd.DataFrame({'B': [4, 5, 6], 'C': [7, 8, 9]}) df.update(new_df) df IndexError Traceback (most recent call last) python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 ...
IndexError
def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( "Invalid broadcast argument for `broadcast_apply`, too m...
def caller(query_compiler, other, *args, **kwargs): axis = kwargs.get("axis", 0) broadcast = kwargs.pop("broadcast", False) if isinstance(other, type(query_compiler)): if broadcast: assert len(other.columns) == 1, ( "Invalid broadcast argument for `broadcast_apply`, too m...
https://github.com/modin-project/modin/issues/1557
import modin.pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [400, 500, 600]}) new_df = pd.DataFrame({'B': [4, 5, 6], 'C': [7, 8, 9]}) df.update(new_df) df IndexError Traceback (most recent call last) python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 ...
IndexError
def _copartition(self, axis, other, how, sort, force_repartition=False): """ Copartition two dataframes. Parameters ---------- axis : int The axis to copartition along. other : BasePandasFrame The other dataframes(s) to copartition against. how : str ...
def _copartition(self, axis, other, how, sort, force_repartition=False): """Copartition two dataframes. Args: axis: The axis to copartition along. other: The other dataframes(s) to copartition against. how: How to manage joining the index object ("left", "right", etc.) sort: Whe...
https://github.com/modin-project/modin/issues/1557
import modin.pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [400, 500, 600]}) new_df = pd.DataFrame({'B': [4, 5, 6], 'C': [7, 8, 9]}) df.update(new_df) df IndexError Traceback (most recent call last) python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 ...
IndexError
def _binary_op(self, op, right_frame, join_type="outer"): """ Perform an operation that requires joining with another dataframe. Parameters ---------- op : callable The function to apply after the join. right_frame : BasePandasFrame The dataframe to join with. ...
def _binary_op(self, op, right_frame, join_type="outer"): """Perform an operation that requires joining with another dataframe. Args: op: The function to apply after the join. right_frame: The dataframe to join with. join_type: (optional) The type of join to apply. Returns: ...
https://github.com/modin-project/modin/issues/1557
import modin.pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [400, 500, 600]}) new_df = pd.DataFrame({'B': [4, 5, 6], 'C': [7, 8, 9]}) df.update(new_df) df IndexError Traceback (most recent call last) python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 ...
IndexError
def binary_operation(cls, axis, left, func, right): """ Apply a function that requires two BasePandasFrame objects. Parameters ---------- axis : int The axis to apply the function over (0 - rows, 1 - columns) left : NumPy array The partitions of left Modin Frame ...
def binary_operation(cls, axis, left, func, right): """Apply a function that requires two BaseFrameManager objects. Args: axis: The axis to apply the function over (0 - rows, 1 - columns) func: The function to apply other: The other BaseFrameManager object to apply func to. Returns...
https://github.com/modin-project/modin/issues/1557
import modin.pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [400, 500, 600]}) new_df = pd.DataFrame({'B': [4, 5, 6], 'C': [7, 8, 9]}) df.update(new_df) df IndexError Traceback (most recent call last) python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 ...
IndexError
def update(self, other, join="left", overwrite=True, filter_func=None, errors="ignore"): """ Modify in place using non-NA values from another DataFrame. Aligns on indices. There is no return value. Parameters ---------- other : DataFrame, or object coercible into a DataFrame Should hav...
def update(self, other, join="left", overwrite=True, filter_func=None, errors="ignore"): """Modify DataFrame in place using non-NA values from other. Args: other: DataFrame, or object coercible into a DataFrame join: {'left'}, default 'left' overwrite: If True then overwrite values for ...
https://github.com/modin-project/modin/issues/1557
import modin.pandas as pd df = pd.DataFrame({'A': [1, 2, 3], 'B': [400, 500, 600]}) new_df = pd.DataFrame({'B': [4, 5, 6], 'C': [7, 8, 9]}) df.update(new_df) df IndexError Traceback (most recent call last) python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 ...
IndexError