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 update(self, other): """ Modify Series in place using non-NA values from passed Series. Aligns on index. Parameters ---------- other : Series, or object coercible into Series """ if not isinstance(other, Series): other = Series(other) query_compiler = self._query_compile...
def update(self, other): return self._default_to_pandas(pandas.Series.update, other)
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 groupby_reduce( self, by, axis, groupby_args, map_func, map_args, reduce_func=None, reduce_args=None, numeric_only=True, drop=False, ): """Apply a Groupby via MapReduce pattern. Note: Result length will be the number of unique values in `by`. Currently, here is ...
def groupby_reduce( self, by, axis, groupby_args, map_func, map_args, reduce_func=None, reduce_args=None, numeric_only=True, drop=False, ): """Apply a Groupby via MapReduce pattern. Note: Result length will be the number of unique values in `by`. Currently, here is ...
https://github.com/modin-project/modin/issues/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
def _map(df, other): def compute_map(df, other): # Set `as_index` to True to track the metadata of the grouping object # It is used to make sure that between phases we are constructing the # right index and placing columns in the correct order. groupby_args["as_index"] = True ...
def _map(df, other): # Set `as_index` to True to track the metadata of the grouping object # It is used to make sure that between phases we are constructing the # right index and placing columns in the correct order. groupby_args["as_index"] = True other = other.squeeze(axis=axis ^ 1) if isinsta...
https://github.com/modin-project/modin/issues/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
def _reduce(df): def compute_reduce(df): other_len = len(df.index.names) df = df.reset_index(drop=False) # See note above about setting `as_index` groupby_args["as_index"] = as_index if other_len > 1: by_part = list(df.columns[0:other_len]) else: ...
def _reduce(df): other_len = len(df.index.names) df = df.reset_index(drop=False) # See note above about setting `as_index` groupby_args["as_index"] = as_index if other_len > 1: by_part = list(df.columns[0:other_len]) else: by_part = df.columns[0] result = reduce_func( ...
https://github.com/modin-project/modin/issues/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
def apply(self, func, *args, **kwargs): return self._apply_agg_function( # Grouping column in never dropped in groupby.apply, so drop=False lambda df: df.apply(func, *args, **kwargs), drop=False, )
def apply(self, func, *args, **kwargs): return self._apply_agg_function( lambda df: df.apply(func, *args, **kwargs), drop=self._as_index )
https://github.com/modin-project/modin/issues/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
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/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
def size(self): if self._axis == 0: if self._as_index: work_object = self[self._df.columns[0]] else: # Size always works in as_index=True mode so it is necessary to make a copy # of _kwargs and change as_index in it kwargs = self._kwargs.copy() ...
def size(self): return pandas.Series({k: len(v) for k, v in self._index_grouped.items()})
https://github.com/modin-project/modin/issues/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
def _groupby_reduce( self, map_func, reduce_func, drop=True, numeric_only=True, **kwargs ): if self._is_multi_by and not isinstance(self._by, type(self._query_compiler)): return self._default_to_pandas(map_func, **kwargs) if not isinstance(self._by, type(self._query_compiler)): return self._...
def _groupby_reduce( self, map_func, reduce_func, drop=True, numeric_only=True, **kwargs ): if self._is_multi_by and not isinstance(self._by, type(self._query_compiler)): return self._default_to_pandas(map_func, **kwargs) if not isinstance(self._by, type(self._query_compiler)): return self._...
https://github.com/modin-project/modin/issues/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
def _iter(self): group_ids = self._index_grouped.keys() if self._axis == 0: return ( ( k, Series( query_compiler=self._query_compiler.getitem_row_array( self._index.get_indexer_for(self._index_grouped[k].unique()) ...
def _iter(self): from .dataframe import Series group_ids = self._index_grouped.keys() if self._axis == 0: return ( ( k, Series( query_compiler=self._query_compiler.getitem_row_array( self._index.get_indexer_for(...
https://github.com/modin-project/modin/issues/1563
Traceback (most recent call last): File "groupby_test16.py", line 29, in <module> df1 = gb.prod() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 333, in prod return self._groupby_reduce(callable, None) File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 582, in _groupby_reduce query_compiler=...
ray.exceptions.RayTaskError
def _dt_prop_map(property_name): """ Create a function that call property of property `dt` of the series. Parameters ---------- property_name The property of `dt`, which will be applied. Returns ------- A callable function to be applied in the partitions Notes ----...
def _dt_prop_map(property_name): """ Create a function that call property of property `dt` of the series. Parameters ---------- property_name The property of `dt`, which will be applied. Returns ------- A callable function to be applied in the partitions Notes ----...
https://github.com/modin-project/modin/issues/1525
'Traceback (most recent call last):\n File "/home/adrian.arroyo/.vscode-server/extensions/ms-python.python-2020.5.80290/pythonFiles/lib/python/debugpy/no_wheels/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py", line 193, in _get_py_dictionary\n attr = getattr(var, name)\n File "/home/adrian.arroyo/.local/lib...
Exception
def dt_op_builder(df, *args, **kwargs): prop_val = getattr(df.squeeze().dt, property_name) if isinstance(prop_val, pandas.Series): return prop_val.to_frame() elif isinstance(prop_val, pandas.DataFrame): return prop_val else: return pandas.DataFrame([prop_val])
def dt_op_builder(df, *args, **kwargs): prop_val = getattr(df.squeeze().dt, property_name) if isinstance(prop_val, pandas.Series): return prop_val.to_frame() else: return pandas.DataFrame([prop_val])
https://github.com/modin-project/modin/issues/1525
'Traceback (most recent call last):\n File "/home/adrian.arroyo/.vscode-server/extensions/ms-python.python-2020.5.80290/pythonFiles/lib/python/debugpy/no_wheels/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py", line 193, in _get_py_dictionary\n attr = getattr(var, name)\n File "/home/adrian.arroyo/.local/lib...
Exception
def default_to_pandas(self, pandas_op, *args, **kwargs): """Default to pandas behavior. Parameters ---------- pandas_op : callable The operation to apply, must be compatible pandas DataFrame call args The arguments for the `pandas_op` kwargs The keyword arguments for the...
def default_to_pandas(self, pandas_op, *args, **kwargs): """Default to pandas behavior. Parameters ---------- pandas_op : callable The operation to apply, must be compatible pandas DataFrame call args The arguments for the `pandas_op` kwargs The keyword arguments for the...
https://github.com/modin-project/modin/issues/1525
'Traceback (most recent call last):\n File "/home/adrian.arroyo/.vscode-server/extensions/ms-python.python-2020.5.80290/pythonFiles/lib/python/debugpy/no_wheels/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py", line 193, in _get_py_dictionary\n attr = getattr(var, name)\n File "/home/adrian.arroyo/.local/lib...
Exception
def to_timestamp(self, *args, **kwargs): return Series(query_compiler=self._query_compiler.dt_to_timestamp(*args, **kwargs))
def to_timestamp(self, freq=None, how="start", copy=True): return self._default_to_pandas("to_timestamp", freq=freq, how=how, copy=copy)
https://github.com/modin-project/modin/issues/1525
'Traceback (most recent call last):\n File "/home/adrian.arroyo/.vscode-server/extensions/ms-python.python-2020.5.80290/pythonFiles/lib/python/debugpy/no_wheels/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py", line 193, in _get_py_dictionary\n attr = getattr(var, name)\n File "/home/adrian.arroyo/.local/lib...
Exception
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() if self._drop: if not isinstance(key, list): key = [key] kwargs["squeeze"] = True # When `as_index` is False, pandas will always convert to a `DataFrame`, we # convert to a list here so that the result will be a `Da...
https://github.com/modin-project/modin/issues/1509
Traceback (most recent call last): File "groupby_test.py", line 8, in <module> df1 = df.groupby('max_speed')['max_speed'].count() File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 452, in count return self._groupby_reduce( File "/localdisk/gashiman/modin/modin/pandas/groupby.py", line 519, in _groupby_redu...
IndexError
def __setitem__(self, key, value): if key not in self.columns: # Handle new column case first if isinstance(value, Series): if len(self.columns) == 0: self._query_compiler = value._query_compiler.copy() else: self._create_or_update_from_compile...
def __setitem__(self, key, value): if not isinstance(key, str): def setitem_without_string_columns(df): # Arrow makes memory-mapped objects immutable, so copy will allow them # to be mutable again. df = df.copy(True) df[key] = value return df ...
https://github.com/modin-project/modin/issues/1490
Traceback (most recent call last): File "/nfs/site/home/gashiman/.local/lib/python3.7/site-packages/pandas/core/frame.py", line 3054, in _ensure_valid_index value = Series(value) File "/nfs/site/home/gashiman/.local/lib/python3.7/site-packages/pandas/core/series.py", line 256, in __init__ data, index = self._init_dict(...
ValueError
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_o...
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 pathlib_or_pypath(filepath_or_bu...
https://github.com/modin-project/modin/issues/1379
Traceback (most recent call last): File "code.py", line 90, in runcode exec(code, self.locals) File "<input>", line 2, in <module> File "/modin/pandas/io.py", line 143, in read_json return DataFrame(query_compiler=BaseFactory.read_json(**kwargs)) File "/modin/data_management/factories.py", line 60, in read_json return ...
ValueError
def read(cls, path_or_buf, **kwargs): if isinstance(path_or_buf, str): if not cls.file_exists(path_or_buf): return cls.single_worker_read(path_or_buf, **kwargs) path_or_buf = cls.get_path(path_or_buf) elif not cls.pathlib_or_pypath(path_or_buf): return cls.single_worker_read(...
def read(cls, path_or_buf, **kwargs): path_or_buf = cls.get_path(path_or_buf) if not kwargs.get("lines", False): return cls.single_worker_read(path_or_buf, **kwargs) columns = pandas.read_json( BytesIO(b"" + open(path_or_buf, "rb").readline()), lines=True ).columns kwargs["columns"] ...
https://github.com/modin-project/modin/issues/1379
Traceback (most recent call last): File "code.py", line 90, in runcode exec(code, self.locals) File "<input>", line 2, in <module> File "/modin/pandas/io.py", line 143, in read_json return DataFrame(query_compiler=BaseFactory.read_json(**kwargs)) File "/modin/data_management/factories.py", line 60, in read_json return ...
ValueError
def read_gbq( cls, query: str, project_id=None, index_col=None, col_order=None, reauth=False, auth_local_webserver=False, dialect=None, location=None, configuration=None, credentials=None, use_bqstorage_api=None, private_key=None, verbose=None, progress_bar_ty...
def read_gbq( cls, query, project_id=None, index_col=None, col_order=None, reauth=False, auth_local_webserver=False, dialect=None, location=None, configuration=None, credentials=None, private_key=None, verbose=None, ): ErrorMessage.default_to_pandas("`read_gbq`") ...
https://github.com/modin-project/modin/issues/1398
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/app/modin-project-modin-05754d9/modin/pandas/io.py", line 186, in read_gbq return DataFrame(query_compiler=BaseFactory.read_gbq(**kwargs)) File "/app/modin-project-modin-05754d9/modin/data_management/factories.py", line 81, in read_gbq return...
TypeError
def _getitem_slice(self, key): if key.start is None and key.stop is None: return self.copy() return self.iloc[key]
def _getitem_slice(self, key): # If there is no step, we can fasttrack the codepath to use existing logic from # head and tail, which is already pretty fast. if ( key.step is None and (isinstance(key.start, int) or key.start is None) and (isinstance(key.stop, int) or key.stop is None...
https://github.com/modin-project/modin/issues/1383
--------------------------------------------------------------------------- Exception Traceback (most recent call last) <ipython-input-6-525f4cb2bfb2> in <module> ----> 1 c[3:7] ~/software_builds/modin/modin/pandas/base.py in __getitem__(self, key) 3254 ) 3255 if indexer...
Exception
def __setitem__(self, key, value): if not isinstance(key, str): def setitem_without_string_columns(df): # Arrow makes memory-mapped objects immutable, so copy will allow them # to be mutable again. df = df.copy(True) df[key] = value return df ...
def __setitem__(self, key, value): if not isinstance(key, str): def setitem_without_string_columns(df): # Arrow makes memory-mapped objects immutable, so copy will allow them # to be mutable again. df = df.copy(True) df[key] = value return df ...
https://github.com/modin-project/modin/issues/1388
Traceback (most recent call last): File "empty_df_test2.py", line 8, in <module> df['id'] = pd.Series([1, 2]) File "/localdisk/gashiman/modin/modin/pandas/dataframe.py", line 2069, in __setitem__ self._query_compiler.concat(1, value._query_compiler), inplace=True File "/localdisk/gashiman/modin/modin/backends/pandas/qu...
numpy.AxisError
def groupby_reduce( self, by, axis, groupby_args, map_func, map_args, reduce_func=None, reduce_args=None, numeric_only=True, drop=False, ): """Apply a Groupby via MapReduce pattern. Note: Result length will be the number of unique values in `by`. Currently, here is ...
def groupby_reduce( self, by, axis, groupby_args, map_func, map_args, reduce_func=None, reduce_args=None, numeric_only=True, drop=False, ): assert isinstance(by, type(self)), ( "Can only use groupby reduce with another Query Compiler" ) other_len = len(by.col...
https://github.com/modin-project/modin/issues/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
def _map(df, other): # Set `as_index` to True to track the metadata of the grouping object # It is used to make sure that between phases we are constructing the # right index and placing columns in the correct order. groupby_args["as_index"] = True other = other.squeeze(axis=axis ^ 1) if isinsta...
def _map(df, other): # Set `as_index` to True to track the metadata of the grouping object # It is used to make sure that between phases we are constructing the # right index and placing columns in the correct order. groupby_args["as_index"] = True other = other.squeeze(axis=axis ^ 1) if isinsta...
https://github.com/modin-project/modin/issues/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
def _reduce(df): other_len = len(df.index.names) df = df.reset_index(drop=False) # See note above about setting `as_index` groupby_args["as_index"] = as_index if other_len > 1: by_part = list(df.columns[0:other_len]) else: by_part = df.columns[0] result = reduce_func( ...
def _reduce(df): # See note above about setting `as_index` groupby_args["as_index"] = True if other_len > 1: by = list(df.columns[0:other_len]) else: by = df.columns[0] result = map_func(df.groupby(by=by, axis=axis, **groupby_args), **map_args) if ( not isinstance(result....
https://github.com/modin-project/modin/issues/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
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/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
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/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
def __init__( self, df, by, axis, level, as_index, sort, group_keys, squeeze, idx_name, drop, **kwargs, ): self._axis = axis self._idx_name = idx_name self._df = df self._query_compiler = self._df._query_compiler self._index = self._query_compiler.inde...
def __init__( self, df, by, axis, level, as_index, sort, group_keys, squeeze, idx_name, drop, **kwargs, ): self._axis = axis self._idx_name = idx_name self._df = df self._query_compiler = self._df._query_compiler self._index = self._query_compiler.inde...
https://github.com/modin-project/modin/issues/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
def _groupby_reduce( self, map_func, reduce_func, drop=True, numeric_only=True, **kwargs ): if self._is_multi_by and not isinstance(self._by, type(self._query_compiler)): return self._default_to_pandas(map_func, **kwargs) if not isinstance(self._by, type(self._query_compiler)): return self._...
def _groupby_reduce( self, map_func, reduce_func, drop=True, numeric_only=True, **kwargs ): if self._is_multi_by: return self._default_to_pandas(map_func, **kwargs) if not isinstance(self._by, type(self._query_compiler)): return self._apply_agg_function(map_func, drop=drop, **kwargs) # ...
https://github.com/modin-project/modin/issues/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
def _apply_agg_function(self, f, drop=True, **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 is not c...
def _apply_agg_function(self, f, drop=True, **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 is not c...
https://github.com/modin-project/modin/issues/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
def _default_to_pandas(self, f, **kwargs): """Defailts the execution of this function to pandas. Args: f: The function to apply to each group. Returns: A new Modin DataFrame with the result of the pandas function. """ if isinstance(self._by, type(self._query_compiler)) and len(sel...
def _default_to_pandas(self, f, **kwargs): """Defailts the execution of this function to pandas. Args: f: The function to apply to each group. Returns: A new Modin DataFrame with the result of the pandas function. """ if isinstance(self._by, type(self._query_compiler)): by...
https://github.com/modin-project/modin/issues/1073
Traceback (most recent call last): File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 190, in <module> query(query_df) File "/localdisk/gashiman/omniscripts/taxi/taxibench_pandas.py", line 95, in q3 return transformed.groupby(['passenger_count','pickup_datetime'])[['passenger_count','pickup_datetime'...
ValueError
def drop_duplicates(self, keep="first", inplace=False, **kwargs): """Return DataFrame with duplicate rows removed, optionally only considering certain columns Args: subset : column label or sequence of labels, optional Only consider certain columns for identifying duplicates, by ...
def drop_duplicates(self, keep="first", inplace=False, **kwargs): """Return DataFrame with duplicate rows removed, optionally only considering certain columns Args: subset : column label or sequence of labels, optional Only consider certain columns for identifying duplicates, by ...
https://github.com/modin-project/modin/issues/1115
2020-02-27 10:22:13,644 INFO resource_spec.py:216 -- Starting Ray with 200.0 GiB memory available for workers and up to 200.0 GiB for objects. You can adjust these settings with ray.init(memory=<bytes>, object_store_memory=<bytes>). 2020-02-27 10:22:13,899 WARNING services.py:1365 -- WARNING: object_store_memory is not...
AttributeError
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/1115
2020-02-27 10:22:13,644 INFO resource_spec.py:216 -- Starting Ray with 200.0 GiB memory available for workers and up to 200.0 GiB for objects. You can adjust these settings with ray.init(memory=<bytes>, object_store_memory=<bytes>). 2020-02-27 10:22:13,899 WARNING services.py:1365 -- WARNING: object_store_memory is not...
AttributeError
def _validate_other( self, other, axis, numeric_only=False, numeric_or_time_only=False, numeric_or_object_only=False, comparison_dtypes_only=False, ): """Helper method to check validity of other in inter-df operations""" # We skip dtype checking if the other is a scalar. if is_sc...
def _validate_other( self, other, axis, numeric_only=False, numeric_or_time_only=False, numeric_or_object_only=False, comparison_dtypes_only=False, ): """Helper method to check validity of other in inter-df operations""" # We skip dtype checking if the other is a scalar. if is_sc...
https://github.com/modin-project/modin/issues/1059
Traceback (most recent call last): File "bug.py", line 13, in <module> print(mdf + ms) File "/Users/wonchanl/Workspace/modinv/modin/pandas/dataframe.py", line 2084, in __add__ return self.add(other, axis=axis, level=level, fill_value=fill_value) File "/Users/wonchanl/Workspace/modinv/modin/pandas/dataframe.py", line 48...
ValueError
def __getitem__(self, key): # When getting along a single axis, if not isinstance(key, tuple): # Try to fasttrack the code through already optimized path try: return self.df.__getitem__(key) # This can happen if it is a list of rows except KeyError: pass ...
def __getitem__(self, key): # When getting along a single axis, if not isinstance(key, tuple): # Try to fasttrack the code through already optimized path try: return self.df.__getitem__(key) # This can happen if it is a list of rows except KeyError: pass ...
https://github.com/modin-project/modin/issues/1032
Pandas: max_speed shield cobra 1 2 viper 4 5 sidewinder 7 8 UserWarning: Distributing <class 'list'> object. This may take some time. Traceback (most recent call last): File "modint.py", line 17, in <module> o = mdf.loc[:, ~mdf.columns.duplicated()] File "/opt/ana...
ValueError
def __getitem__(self, key): # When getting along a single axis, if not isinstance(key, tuple): # Try to fasttrack the code through already optimized path try: return self.df.__getitem__(key) # This can happen if it is a list of rows except KeyError: pass ...
def __getitem__(self, key): # When getting along a single axis, if not isinstance(key, tuple): # Try to fasttrack the code through already optimized path try: return self.df.__getitem__(key) # This can happen if it is a list of rows except KeyError: pass ...
https://github.com/modin-project/modin/issues/1023
In [4]: df.loc[:, "col0":"col3"] --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-4-f1d9690a44cf> in <module> ----> 1 df.loc[:, "col0":"col3"] ~/software_builds/modin/modin/pandas/indexing.py in __geti...
TypeError
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/915
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-69-936ab004d2a8> in <module> 2 df = pd.read_csv(file_path) 3 data_per_user = generate_data_per_user_dicts() ----> 4 df.apply(extract_data_per...
TypeError
def read_sql(cls, sql, con, index_col=None, **kwargs): """Reads a SQL query or database table into a DataFrame. Args: sql: string or SQLAlchemy Selectable (select or text object) SQL query to be executed or a table name. con: SQLAlchemy connectable (engine/connection) or database str...
def read_sql(cls, sql, con, index_col=None, **kwargs): """Reads a SQL query or database table into a DataFrame. Args: sql: string or SQLAlchemy Selectable (select or text object) SQL query to be executed or a table name. con: SQLAlchemy connectable (engine/connection) or database str...
https://github.com/modin-project/modin/issues/729
In [1]: import pandas as pd In [2]: import psycopg2 ...: ...: ...: CONN = psycopg2.connect(dbname="tmpdb", user="xx", ...: password="xx", host="xx") In [3]: df = pd.read_sql("SELECT time FROM tmpdb", CONN) In [4]: import modin.pandas as pd In [5]: df = pd.read_sql("SELECT time FROM tmpdb...
TypeError
def astype(self, col_dtypes): """Converts columns dtypes to given dtypes. Args: col_dtypes: Dictionary of {col: dtype,...} where col is the column name and dtype is a numpy dtype. Returns: dataframe with updated dtypes. """ columns = col_dtypes.keys() # Create Serie...
def astype(self, col_dtypes): """Converts columns dtypes to given dtypes. Args: col_dtypes: Dictionary of {col: dtype,...} where col is the column name and dtype is a numpy dtype. Returns: dataframe with updated dtypes. """ columns = col_dtypes.keys() # Create Serie...
https://github.com/modin-project/modin/issues/864
a = pd.Series(['A', 'A', 'B', 'B', 'A']) a = a.astype('category') a_df = a.to_frame() a_df.select_dtypes('category') Traceback (most recent call last): File "/home/bar/.local/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ip...
AttributeError
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, **kwargs, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to group...
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, **kwargs, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to group...
https://github.com/modin-project/modin/issues/783
In [1]: import modin.pandas ...: import pandas as pd ...: ...: # Working example with Pandas ...: csv1=pd.read_csv('test.dat',header=0,index_col=[0,1]) ...: g1=csv1.groupby(['p0', 'p1']) ...: ...: # Testing with modin.pandas ...: csv2=modin.pandas.read_csv('test.dat',header=0,index_col=[0,1]) ...: g2=csv2.groupby(['p0'...
KeyError
def map(self, arg, na_action=None): if not callable(arg) and hasattr(arg, "get"): mapper = arg def arg(s): return mapper.get(s, np.nan) return self.__constructor__( query_compiler=self._query_compiler.applymap( lambda s: arg(s) if not pandas.isnull(s) or na_acti...
def map(self, arg, na_action=None): return self.__constructor__(query_compiler=self._query_compiler.applymap(arg))
https://github.com/modin-project/modin/issues/778
Traceback (most recent call last): File "/home/jason/.virtualenvs/bert_poc/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3326, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-df805f17ff4c>", line 12, in <module> df.loc[:, "column"] = df.loc[:, "column"].map(map...
ray.exceptions.RayTaskError
def _apply_full_axis(self, axis, func, new_index=None, new_columns=None, dtypes=None): """Perform a function across an entire axis. Note: The data shape may change as a result of the function. Args: axis: The axis to apply over. func: The function to apply. new_index: (optional) Th...
def _apply_full_axis(self, axis, func, new_index=None, new_columns=None, dtypes=None): """Perform a function across an entire axis. Note: The data shape may change as a result of the function. Args: axis: The axis to apply over. func: The function to apply. new_index: (optional) Th...
https://github.com/modin-project/modin/issues/758
p0 Index(['data0', 'data1', 'data2'], dtype='object') --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-6-704c3a79c97b> in <module>() ----> 1 df_g=csv2.groupby('p0').get_group('A') ~/.local/lib/python3....
KeyError
def count(self, axis=0, level=None, numeric_only=False): """Get the count of non-null objects in the DataFrame. Arguments: axis: 0 or 'index' for row-wise, 1 or 'columns' for column-wise. level: If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing i...
def count(self, axis=0, level=None, numeric_only=False): """Get the count of non-null objects in the DataFrame. Arguments: axis: 0 or 'index' for row-wise, 1 or 'columns' for column-wise. level: If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing i...
https://github.com/modin-project/modin/issues/758
p0 Index(['data0', 'data1', 'data2'], dtype='object') --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-6-704c3a79c97b> in <module>() ----> 1 df_g=csv2.groupby('p0').get_group('A') ~/.local/lib/python3....
KeyError
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, **kwargs, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to group...
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, **kwargs, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to group...
https://github.com/modin-project/modin/issues/758
p0 Index(['data0', 'data1', 'data2'], dtype='object') --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-6-704c3a79c97b> in <module>() ----> 1 df_g=csv2.groupby('p0').get_group('A') ~/.local/lib/python3....
KeyError
def _groupby_reduce( self, map_func, reduce_func, drop=True, numeric_only=True, **kwargs ): if self._is_multi_by or self._level is not None: return self._default_to_pandas(map_func, **kwargs) if not isinstance(self._by, type(self._query_compiler)): return self._apply_agg_function(map_func, d...
def _groupby_reduce( self, map_func, reduce_func, drop=True, numeric_only=True, **kwargs ): if ( self._is_multi_by or self._level is not None or isinstance(self._df.axes[self._axis], pandas.MultiIndex) ): return self._default_to_pandas(map_func, **kwargs) if not isinstan...
https://github.com/modin-project/modin/issues/758
p0 Index(['data0', 'data1', 'data2'], dtype='object') --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-6-704c3a79c97b> in <module>() ----> 1 df_g=csv2.groupby('p0').get_group('A') ~/.local/lib/python3....
KeyError
def _apply_agg_function(self, f, drop=True, **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 is not c...
def _apply_agg_function(self, f, drop=True, **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 is not c...
https://github.com/modin-project/modin/issues/758
p0 Index(['data0', 'data1', 'data2'], dtype='object') --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-6-704c3a79c97b> in <module>() ----> 1 df_g=csv2.groupby('p0').get_group('A') ~/.local/lib/python3....
KeyError
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, **kwargs, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to group...
def groupby( self, by=None, axis=0, level=None, as_index=True, sort=True, group_keys=True, squeeze=False, observed=False, **kwargs, ): """Apply a groupby to this DataFrame. See _groupby() remote task. Args: by: The value to groupby. axis: The axis to group...
https://github.com/modin-project/modin/issues/756
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-16-e142f2bb04bf> in <module>() ----> 1 g2=csv2.groupby(by=lambda x:x[1]<3) ~/.local/lib/python3.7/site-packages/modin/pandas/dataframe.py in groupby(sel...
TypeError
def _scalar_operations(self, axis, scalar, func): """Handler for mapping scalar operations across a Manager. Args: axis: The axis index object to execute the function on. scalar: The scalar value to map. func: The function to use on the Manager with the scalar. Returns: A n...
def _scalar_operations(self, axis, scalar, func): """Handler for mapping scalar operations across a Manager. Args: axis: The axis index object to execute the function on. scalar: The scalar value to map. func: The function to use on the Manager with the scalar. Returns: A n...
https://github.com/modin-project/modin/issues/708
--------------------------------------------------------------------------- Exception Traceback (most recent call last) ~/Documents/modin/venv/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 type_pprinters=self.type_printers, 701 ...
Exception
def read_sql(cls, sql, con, index_col=None, **kwargs): """Reads a SQL query or database table into a DataFrame. Args: sql: string or SQLAlchemy Selectable (select or text object) SQL query to be executed or a table name. con: SQLAlchemy connectable (engine/connection) or database str...
def read_sql(cls, sql, con, index_col=None, **kwargs): """Reads a SQL query or database table into a DataFrame. Args: sql: string or SQLAlchemy Selectable (select or text object) SQL query to be executed or a table name. con: SQLAlchemy connectable (engine/connection) or database str...
https://github.com/modin-project/modin/issues/711
Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/ray/worker.py", line 383, in put_object self.store_and_register(object_id, value) File "/usr/local/lib/python3.7/site-packages/ray/worker.py", line 317, in store_and_register self.task_driver_id)) File "/usr/local/lib/python3.7/site-package...
TypeError
def sort_index( self, axis=0, level=None, ascending=True, inplace=False, kind="quicksort", na_position="last", sort_remaining=True, by=None, ): """Sort a DataFrame by one of the indices (columns or index). Args: axis: The axis to sort over. level: The MultiIn...
def sort_index( self, axis=0, level=None, ascending=True, inplace=False, kind="quicksort", na_position="last", sort_remaining=True, by=None, ): """Sort a DataFrame by one of the indices (columns or index). Args: axis: The axis to sort over. level: The MultiIn...
https://github.com/modin-project/modin/issues/698
NotImplementedError Traceback (most recent call last) <ipython-input-7-06ffb9961dfc> in <module> ----> 1 hh.sort_index(axis=0) ~/.pyenv/versions/3.7.3/envs/env/lib/python3.7/site-packages/modin/pandas/base.py in sort_index(self, axis, level, ascending, inplace, kind, na_position, sort_remaining, ...
NotImplementedError
def transpose(self, *args, **kwargs): """Transposes this DataManager. Returns: Transposed new DataManager. """ new_data = self.data.transpose(*args, **kwargs) # Switch the index and columns and transpose the data within the blocks. new_manager = self.__constructor__( new_data, s...
def transpose(self, *args, **kwargs): """Transposes this DataManager. Returns: Transposed new DataManager. """ new_data = self.data.transpose(*args, **kwargs) # Switch the index and columns and transpose the new_manager = self.__constructor__( new_data, self.columns, self.index,...
https://github.com/modin-project/modin/issues/646
Traceback (most recent call last): File "modin_operations.py", line 39, in <module> measure_operations(args.mode) File "modin_operations.py", line 31, in measure_operations measure_time(read_operation, pd, filename) File "modin_operations.py", line 7, in measure_time ret_val = func(*args) File "modin_operations.py", li...
Exception
def memory_usage(self, **kwargs): """Returns the memory usage of each column. Returns: A new QueryCompiler object containing the memory usage of each column. """ def memory_usage_builder(df, **kwargs): return df.memory_usage(**kwargs) def sum_memory_usage(df): return df.su...
def memory_usage(self, **kwargs): """Returns the memory usage of each column. Returns: A new QueryCompiler object containing the memory usage of each column. """ def memory_usage_builder(df, **kwargs): return df.memory_usage(**kwargs) func = self._build_mapreduce_func(memory_usage...
https://github.com/modin-project/modin/issues/646
Traceback (most recent call last): File "modin_operations.py", line 39, in <module> measure_operations(args.mode) File "modin_operations.py", line 31, in measure_operations measure_time(read_operation, pd, filename) File "modin_operations.py", line 7, in measure_time ret_val = func(*args) File "modin_operations.py", li...
Exception
def _get_partitions(self): if not self._filtered_empties or ( self._lengths_cache is not None and self._widths_cache is not None ): self._partitions_cache = np.array( [ row for row in [ [ self._partitions_cac...
def _get_partitions(self): if ( not self._filtered_empties and self._lengths_cache is not None and self._widths_cache is not None ): self._partitions_cache = np.array( [ row for row in [ [ sel...
https://github.com/modin-project/modin/issues/646
Traceback (most recent call last): File "modin_operations.py", line 39, in <module> measure_operations(args.mode) File "modin_operations.py", line 31, in measure_operations measure_time(read_operation, pd, filename) File "modin_operations.py", line 7, in measure_time ret_val = func(*args) File "modin_operations.py", li...
Exception
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:...
def __repr__(self): # In the future, we can have this be configurable, just like Pandas. 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...
https://github.com/modin-project/modin/issues/646
Traceback (most recent call last): File "modin_operations.py", line 39, in <module> measure_operations(args.mode) File "modin_operations.py", line 31, in measure_operations measure_time(read_operation, pd, filename) File "modin_operations.py", line 7, in measure_time ret_val = func(*args) File "modin_operations.py", li...
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 new_columns = ( pandas.DataFrame(columns=self.columns) .astype(self.dtypes) ...
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Only describe numeric if there are numeric columns # Otherwise, describe all new_columns = self.numeric_columns(include_bool=False) ...
https://github.com/modin-project/modin/issues/520
--------------------------------------------------------------------------- Exception Traceback (most recent call last) ~/.local/lib/python3.6/site-packages/IPython/core/formatters.py in __call__(self, obj) 700 type_pprinters=self.type_printers, 701 deferr...
Exception
def squeeze(self, ndim=0, axis=None): to_squeeze = self.to_pandas() # This is the case for 1xN or Nx1 DF - Need to call squeeze if ndim == 1: if axis is None: axis = 0 if self.data.shape[1] > 1 else 1 squeezed = pandas.Series(to_squeeze.squeeze()) # In the case of `MultiI...
def squeeze(self, ndim=0, axis=None): to_squeeze = self.data.to_pandas() # This is the case for 1xN or Nx1 DF - Need to call squeeze if ndim == 1: if axis is None: axis = 0 if self.data.shape[1] > 1 else 1 squeezed = pandas.Series(to_squeeze.squeeze(axis)) scaler_axis = s...
https://github.com/modin-project/modin/issues/504
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-7-f7a945237ab9> in <module>() 3 header=[0,1,2,3], index_col=0) 4 DF2.loc[1] ----> 5 DF2.loc[1, 'Presidents'] ~/anaconda3/lib/python3.7/site-packages...
TypeError
def __getitem__(self, key): row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) self._handle_enlargement(row_loc, col_loc) row_lookup, col_lookup = self._compute_lookup(row_loc, col_loc) ndim = (0 if len(row_lookup) == 1 else 1) + (0 if len(col_lookup) == 1 else 1) result = ...
def __getitem__(self, key): row_loc, col_loc, ndim, self.row_scaler, self.col_scaler = _parse_tuple(key) self._handle_enlargement(row_loc, col_loc) row_lookup, col_lookup = self._compute_lookup(row_loc, col_loc) ndim = self._expand_dim(row_lookup, col_lookup, ndim) result = super(_LocIndexer, self)....
https://github.com/modin-project/modin/issues/504
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-7-f7a945237ab9> in <module>() 3 header=[0,1,2,3], index_col=0) 4 DF2.loc[1] ----> 5 DF2.loc[1, 'Presidents'] ~/anaconda3/lib/python3.7/site-packages...
TypeError
def _compute_lookup(self, row_loc, col_loc) -> Tuple[pandas.Index, pandas.Index]: if is_list_like(row_loc) and len(row_loc) == 1: if ( isinstance(self.qc.index.values[0], np.datetime64) and type(row_loc[0]) != np.datetime64 ): row_loc = [pandas.to_datetime(row_loc...
def _compute_lookup(self, row_loc, col_loc) -> Tuple[pandas.Index, pandas.Index]: if isinstance(row_loc, list) and len(row_loc) == 1: if ( isinstance(self.qc.index.values[0], np.datetime64) and type(row_loc[0]) != np.datetime64 ): row_loc = [pandas.to_datetime(row...
https://github.com/modin-project/modin/issues/504
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-7-f7a945237ab9> in <module>() 3 header=[0,1,2,3], index_col=0) 4 DF2.loc[1] ----> 5 DF2.loc[1, 'Presidents'] ~/anaconda3/lib/python3.7/site-packages...
TypeError
def __getattribute__(self, item): default_behaviors = [ "__init__", "series", "parent_df", "_loc", "__arithmetic_op__", "__comparisons__", "__class__", "index", "_get_index", "_set_index", ] if item not in default_behaviors: ...
def __getattribute__(self, item): default_behaviors = [ "__init__", "series", "parent_df", "_loc", "__arithmetic_op__", "__comparisons__", "__class__", ] if item not in default_behaviors: method = self.series.__getattribute__(item) # Ce...
https://github.com/modin-project/modin/issues/504
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-7-f7a945237ab9> in <module>() 3 header=[0,1,2,3], index_col=0) 4 DF2.loc[1] ----> 5 DF2.loc[1, 'Presidents'] ~/anaconda3/lib/python3.7/site-packages...
TypeError
def _prepare_method(self, pandas_func, **kwargs): """Prepares methods given various metadata. Args: pandas_func: The function to prepare. Returns Helper function which handles potential transpose. """ if self._is_transposed: def helper(df, internal_indices=[]): ...
def _prepare_method(self, pandas_func, **kwargs): """Prepares methods given various metadata. Args: pandas_func: The function to prepare. Returns Helper function which handles potential transpose. """ if self._is_transposed: def helper(df, internal_indices=[]): ...
https://github.com/modin-project/modin/issues/474
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-7f2184cfd6d7> in <module> 2 df = pd.DataFrame(columns=cols) 3 for col in cols: ----> 4 df[col] = np.arange(10) ~/Documents/modin/modin/pandas/data...
AssertionError
def helper(df, internal_indices=[]): if len(internal_indices) > 0: return pandas_func(df, internal_indices=internal_indices, **kwargs) return pandas_func(df, **kwargs)
def helper(df, internal_indices=[]): return pandas_func(df, **kwargs)
https://github.com/modin-project/modin/issues/474
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-7f2184cfd6d7> in <module> 2 df = pd.DataFrame(columns=cols) 3 for col in cols: ----> 4 df[col] = np.arange(10) ~/Documents/modin/modin/pandas/data...
AssertionError
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Only describe numeric if there are numeric columns # Otherwise, describe all new_columns = self.numeric_columns(include_bool=False) ...
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Only describe numeric if there are numeric columns # Otherwise, describe all new_columns = self.numeric_columns(include_bool=False) ...
https://github.com/modin-project/modin/issues/474
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-7f2184cfd6d7> in <module> 2 df = pd.DataFrame(columns=cols) 3 for col in cols: ----> 4 df[col] = np.arange(10) ~/Documents/modin/modin/pandas/data...
AssertionError
def describe_builder(df, internal_indices=[], **kwargs): return df.iloc[:, internal_indices].describe(**kwargs)
def describe_builder(df, **kwargs): try: return pandas.DataFrame.describe(df, **kwargs) except ValueError: return pandas.DataFrame(index=df.index)
https://github.com/modin-project/modin/issues/474
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-7f2184cfd6d7> in <module> 2 df = pd.DataFrame(columns=cols) 3 for col in cols: ----> 4 df[col] = np.arange(10) ~/Documents/modin/modin/pandas/data...
AssertionError
def apply_func_to_select_indices_along_full_axis( self, axis, func, indices, keep_remaining=False ): """Applies a function to a select subset of full columns/rows. Note: This should be used when you need to apply a function that relies on some global information for the entire column/row, but only ...
def apply_func_to_select_indices_along_full_axis( self, axis, func, indices, keep_remaining=False ): """Applies a function to a select subset of full columns/rows. Note: This should be used when you need to apply a function that relies on some global information for the entire column/row, but only ...
https://github.com/modin-project/modin/issues/474
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-7f2184cfd6d7> in <module> 2 df = pd.DataFrame(columns=cols) 3 for col in cols: ----> 4 df[col] = np.arange(10) ~/Documents/modin/modin/pandas/data...
AssertionError
def __setitem__(self, key, value): if not isinstance(key, str): def setitem_without_string_columns(df): df[key] = value return df return self._update_inplace( self._default_to_pandas(setitem_without_string_columns)._query_compiler ) if key not in sel...
def __setitem__(self, key, value): if not isinstance(key, str): return self._default_to_pandas(pandas.DataFrame.__setitem__, key, value) if key not in self.columns: self.insert(loc=len(self.columns), column=key, value=value) else: loc = self.columns.get_loc(key) self.__delite...
https://github.com/modin-project/modin/issues/474
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-7f2184cfd6d7> in <module> 2 df = pd.DataFrame(columns=cols) 3 for col in cols: ----> 4 df[col] = np.arange(10) ~/Documents/modin/modin/pandas/data...
AssertionError
def __constructor__(self): raise NotImplementedError("Must be implemented in children classes")
def __constructor__(self): return type(self)
https://github.com/modin-project/modin/issues/477
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-69e2ecd84881> in <module> ----> 1 modin_df.loc[:,['col1', 'col3', 'col3']].head() ~/Documents/modin/modin/pandas/dataframe.py in head(self, n) 1793 ...
AssertionError
def _set_dtype(self, dtypes): raise NotImplementedError("Must be implemented in children classes")
def _set_dtype(self, dtypes): self._dtype_cache = dtypes
https://github.com/modin-project/modin/issues/477
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-69e2ecd84881> in <module> ----> 1 modin_df.loc[:,['col1', 'col3', 'col3']].head() ~/Documents/modin/modin/pandas/dataframe.py in head(self, n) 1793 ...
AssertionError
def _set_data(self, new_data): """Note this setter will be called by the `super(BaseQueryCompiler).__init__` function """ raise NotImplementedError("Must be implemented in children classes")
def _set_data(self, new_data): """Note this setter will be called by the `super(PandasDataManagerView).__init__` function """ self.parent_data = new_data
https://github.com/modin-project/modin/issues/477
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-69e2ecd84881> in <module> ----> 1 modin_df.loc[:,['col1', 'col3', 'col3']].head() ~/Documents/modin/modin/pandas/dataframe.py in head(self, n) 1793 ...
AssertionError
def _get_dtype(self): calculate_dtype = False if self._dtype_cache is None: calculate_dtype = True else: if len(self.columns) != len(self._dtype_cache): if all(col in self._dtype_cache.index for col in self.columns): self._dtype_cache = pandas.Series( ...
def _get_dtype(self): if self._dtype_cache is None: map_func = self._prepare_method(lambda df: df.dtypes) def dtype_builder(df): return df.apply(lambda row: find_common_type(row.values), axis=0) self._dtype_cache = self._full_reduce(0, map_func, dtype_builder) self._dty...
https://github.com/modin-project/modin/issues/477
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-69e2ecd84881> in <module> ----> 1 modin_df.loc[:,['col1', 'col3', 'col3']].head() ~/Documents/modin/modin/pandas/dataframe.py in head(self, n) 1793 ...
AssertionError
def to_pandas(self): """Converts Modin DataFrame to Pandas DataFrame. Returns: Pandas DataFrame of the DataManager. """ df = self.data.to_pandas(is_transposed=self._is_transposed) if df.empty: if len(self.columns) != 0: data = [ pandas.Series(dtype=self.d...
def to_pandas(self): """Converts Modin DataFrame to Pandas DataFrame. Returns: Pandas DataFrame of the DataManager. """ df = self.data.to_pandas(is_transposed=self._is_transposed) if df.empty: dtype_dict = { col_name: pandas.Series(dtype=self.dtypes[col_name]) ...
https://github.com/modin-project/modin/issues/477
--------------------------------------------------------------------------- AssertionError Traceback (most recent call last) <ipython-input-5-69e2ecd84881> in <module> ----> 1 modin_df.loc[:,['col1', 'col3', 'col3']].head() ~/Documents/modin/modin/pandas/dataframe.py in head(self, n) 1793 ...
AssertionError
def _read_csv_from_file_pandas_on_ray(cls, filepath, kwargs={}): """Constructs a DataFrame from a CSV file. Args: filepath (str): path to the CSV file. npartitions (int): number of partitions for the DataFrame. kwargs (dict): args excluding filepath provided to read_csv. Returns: ...
def _read_csv_from_file_pandas_on_ray(cls, filepath, kwargs={}): """Constructs a DataFrame from a CSV file. Args: filepath (str): path to the CSV file. npartitions (int): number of partitions for the DataFrame. kwargs (dict): args excluding filepath provided to read_csv. Returns: ...
https://github.com/modin-project/modin/issues/470
import modin.pandas as pd with open('test.tsv', 'w') as f: f.write("Date\tTime\n" "7/12/2018\t16:29:42.27\n" "7/12/2018\t16:30:11.83") pd.read_csv('test.tsv', sep='\t', parse_dates={'timestamp':['Date', 'Time']}) --------------------------------------------------------------------------- Exception ...
Exception
def drop_duplicates(self, subset=None, keep="first", inplace=False): """Return DataFrame with duplicate rows removed, optionally only considering certain columns Args: subset : column label or sequence of labels, optional Only consider certain columns for identifying duplicates, by ...
def drop_duplicates(self, subset=None, keep="first", inplace=False): """Return DataFrame with duplicate rows removed, optionally only considering certain columns Args: subset : column label or sequence of labels, optional Only consider certain columns for identifying duplicates, by ...
https://github.com/modin-project/modin/issues/464
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-59-b4c2776eba26> in <module>() 1 broken = pd.read_json('/Users/beckermi/Documents/modin_broken.json', orient='split') ----> 2 broken[['time', 'id']].sort...
ValueError
def __getattribute__(self, item): default_behaviors = [ "__init__", "series", "parent_df", "_loc", "__arithmetic_op__", "__comparisons__", "__class__", ] if item not in default_behaviors: method = self.series.__getattribute__(item) # Ce...
def __getattribute__(self, item): default_behaviors = [ "__init__", "series", "parent_df", "_loc", "__arithmetic_op__", "__comparisons__", "__class__", ] if item not in default_behaviors: method = self.series.__getattribute__(item) # Ce...
https://github.com/modin-project/modin/issues/374
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) ~/Downloads/kaggle7/kaggle7.py in <module> 126 # In[16]: 127 --> 128 app_train['DAYS_EMPLOYED'].plot.hist(title = 'Days Employment Histogram'); 129 plt.xlabel('Days Emp...
AttributeError
def apply_func_to_select_indices(self, axis, func, indices, keep_remaining=False): """Applies a function to select indices. Note: Your internal function must take a kwarg `internal_indices` for this to work correctly. This prevents information leakage of the internal index to the external repre...
def apply_func_to_select_indices(self, axis, func, indices, keep_remaining=False): """Applies a function to select indices. Note: Your internal function must take a kwarg `internal_indices` for this to work correctly. This prevents information leakage of the internal index to the external repre...
https://github.com/modin-project/modin/issues/368
Exception Traceback (most recent call last) ~/Downloads/kaggle5/kaggle5.py in <module> 161 for j in range(0, 3): 162 try: --> 163 guess_df = dataset[(dataset['Sex'] == i) &amp; (dataset['Pclass'] == j+1)]['Age'].dropna() 164 except: 165 ...
Exception
def apply_func_to_select_indices_along_full_axis( self, axis, func, indices, keep_remaining=False ): """Applies a function to a select subset of full columns/rows. Note: This should be used when you need to apply a function that relies on some global information for the entire column/row, but only ...
def apply_func_to_select_indices_along_full_axis( self, axis, func, indices, keep_remaining=False ): """Applies a function to a select subset of full columns/rows. Note: This should be used when you need to apply a function that relies on some global information for the entire column/row, but only ...
https://github.com/modin-project/modin/issues/368
Exception Traceback (most recent call last) ~/Downloads/kaggle5/kaggle5.py in <module> 161 for j in range(0, 3): 162 try: --> 163 guess_df = dataset[(dataset['Sex'] == i) &amp; (dataset['Pclass'] == j+1)]['Age'].dropna() 164 except: 165 ...
Exception
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Only describe numeric if there are numeric columns # Otherwise, describe all new_columns = self.numeric_columns(include_bool=False) ...
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Only describe numeric if there are numeric columns # Otherwise, describe all new_columns = self.numeric_columns(include_bool=False) ...
https://github.com/modin-project/modin/issues/364
--------------------------------------------------------------------------- RayTaskError Traceback (most recent call last) ~/Downloads/kaggle5/kaggle5.py in <module> 51 52 ---> 53 train_df.describe(include=['O']) 54 55 # In[9]: ~/software_builds/modin/modin/pandas/dataframe.py in describe(...
RayTaskError
def describe_builder(df, **kwargs): try: return pandas.DataFrame.describe(df, **kwargs) except ValueError: return pandas.DataFrame(index=df.index)
def describe_builder(df, **kwargs): return pandas.DataFrame.describe(df, **kwargs)
https://github.com/modin-project/modin/issues/364
--------------------------------------------------------------------------- RayTaskError Traceback (most recent call last) ~/Downloads/kaggle5/kaggle5.py in <module> 51 52 ---> 53 train_df.describe(include=['O']) 54 55 # In[9]: ~/software_builds/modin/modin/pandas/dataframe.py in describe(...
RayTaskError
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Only describe numeric if there are numeric columns # Otherwise, describe all new_columns = self.numeric_columns(include_bool=False) ...
def describe(self, **kwargs): """Generates descriptive statistics. Returns: DataFrame object containing the descriptive statistics of the DataFrame. """ # Only describe numeric if there are numeric columns # Otherwise, describe all new_columns = self.numeric_columns(include_bool=False) ...
https://github.com/modin-project/modin/issues/362
RayTaskError Traceback (most recent call last) ~/Downloads/kaggle5/kaggle5.py in <module> 51 52 ---> 53 train_df.describe(include=['O']) 54 55 # In[9]: ~/software_builds/modin/modin/pandas/dataframe.py in describe(self, percentiles, include, exclude) 1093 return DataFrame( 1094 ...
RayTaskError
def describe(self, percentiles=None, include=None, exclude=None): """ Generates descriptive statistics that summarize the central tendency, dispersion and shape of a dataset's distribution, excluding NaN values. Args: percentiles (list-like of numbers, optional): The percentiles to ...
def describe(self, percentiles=None, include=None, exclude=None): """ Generates descriptive statistics that summarize the central tendency, dispersion and shape of a dataset's distribution, excluding NaN values. Args: percentiles (list-like of numbers, optional): The percentiles to ...
https://github.com/modin-project/modin/issues/362
RayTaskError Traceback (most recent call last) ~/Downloads/kaggle5/kaggle5.py in <module> 51 52 ---> 53 train_df.describe(include=['O']) 54 55 # In[9]: ~/software_builds/modin/modin/pandas/dataframe.py in describe(self, percentiles, include, exclude) 1093 return DataFrame( 1094 ...
RayTaskError
def cummax(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative maximum across the DataFrame. Args: axis (int): The axis to take maximum on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative maximum of the DataFrame. """ axis...
def cummax(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative maximum across the DataFrame. Args: axis (int): The axis to take maximum on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative maximum of the DataFrame. """ axis...
https://github.com/modin-project/modin/issues/126
RayGetError: Could not get objectid ObjectID(01000000f0cc325805f5c83895ed0532827d52de). It was created by remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func which failed with: Remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func failed with: Traceb...
TypeError
def cummin(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative minimum across the DataFrame. Args: axis (int): The axis to cummin on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative minimum of the DataFrame. """ axis = pan...
def cummin(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative minimum across the DataFrame. Args: axis (int): The axis to cummin on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative minimum of the DataFrame. """ axis = pan...
https://github.com/modin-project/modin/issues/126
RayGetError: Could not get objectid ObjectID(01000000f0cc325805f5c83895ed0532827d52de). It was created by remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func which failed with: Remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func failed with: Traceb...
TypeError
def cumprod(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative product across the DataFrame. Args: axis (int): The axis to take product on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative product of the DataFrame. """ axi...
def cumprod(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative product across the DataFrame. Args: axis (int): The axis to take product on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative product of the DataFrame. """ axi...
https://github.com/modin-project/modin/issues/126
RayGetError: Could not get objectid ObjectID(01000000f0cc325805f5c83895ed0532827d52de). It was created by remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func which failed with: Remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func failed with: Traceb...
TypeError
def cumsum(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative sum across the DataFrame. Args: axis (int): The axis to take sum on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative sum of the DataFrame. """ axis = pandas.Da...
def cumsum(self, axis=None, skipna=True, *args, **kwargs): """Perform a cumulative sum across the DataFrame. Args: axis (int): The axis to take sum on. skipna (bool): True to skip NA values, false otherwise. Returns: The cumulative sum of the DataFrame. """ axis = pandas.Da...
https://github.com/modin-project/modin/issues/126
RayGetError: Could not get objectid ObjectID(01000000f0cc325805f5c83895ed0532827d52de). It was created by remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func which failed with: Remote function modin.data_management.partitioning.axis_partition.deploy_ray_axis_func failed with: Traceb...
TypeError
def send_templated_mail( template_name, context, recipients, sender=None, bcc=None, fail_silently=False, files=None, extra_headers={}, ): """ send_templated_mail() is a wrapper around Django's e-mail routines that allows us to easily send multipart (text/plain & text/html) e-...
def send_templated_mail( template_name, context, recipients, sender=None, bcc=None, fail_silently=False, files=None, extra_headers={}, ): """ send_templated_mail() is a wrapper around Django's e-mail routines that allows us to easily send multipart (text/plain & text/html) e-...
https://github.com/django-helpdesk/django-helpdesk/issues/721
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e,...
NotImplementedError
def ticket_from_message(message, queue, logger): # 'message' must be an RFC822 formatted message. message = ( email.message_from_string(message) if six.PY3 else email.message_from_string(message.encode("utf-8")) ) subject = message.get("subject", _("Comment from e-mail")) sub...
def ticket_from_message(message, queue, logger): # 'message' must be an RFC822 formatted message. message = ( email.message_from_string(message) if six.PY3 else email.message_from_string(message.encode("utf-8")) ) subject = message.get("subject", _("Comment from e-mail")) sub...
https://github.com/django-helpdesk/django-helpdesk/issues/567
./manage.sh get_email ***** Sat Nov 4 13:25:02 2017: Begin processing mail for django-helpdesk Attempting IMAP server login Received 1 messages from IMAP server Processing message b'1' No tracking ID matched. Traceback (most recent call last): File "/home/chtis/src/monkeypants/goodies-taskdesk/.venv/lib/python3.6/base...
TypeError
def http_get(self, path, query_data={}, streamed=False, raw=False, **kwargs): """Make a GET request to the Gitlab server. Args: path (str): Path or full URL to query ('/projects' or 'http://whatever/v4/api/projecs') query_data (dict): Data to send as query parameters ...
def http_get(self, path, query_data={}, streamed=False, **kwargs): """Make a GET request to the Gitlab server. Args: path (str): Path or full URL to query ('/projects' or 'http://whatever/v4/api/projecs') query_data (dict): Data to send as query parameters streamed (...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def content(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Return the content of a snippet. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment. action (callable): Calla...
def content(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Return the content of a snippet. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment. action (callable): Calla...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def artifacts(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Get the job artifacts. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment action (callable): Callable respo...
def artifacts(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Get the job artifacts. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment action (callable): Callable respo...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def artifact(self, path, streamed=False, action=None, chunk_size=1024, **kwargs): """Get a single artifact file from within the job's artifacts archive. Args: path (str): Path of the artifact streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chun...
def artifact(self, path, streamed=False, action=None, chunk_size=1024, **kwargs): """Get a single artifact file from within the job's artifacts archive. Args: path (str): Path of the artifact streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chun...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def trace(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Get the job trace. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment action (callable): Callable responsible o...
def trace(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Get the job trace. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment action (callable): Callable responsible o...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def raw(self, file_path, ref, streamed=False, action=None, chunk_size=1024, **kwargs): """Return the content of a file for a commit. Args: ref (str): ID of the commit filepath (str): Path of the file to return streamed (bool): If True the data will be processed by chunks of ...
def raw(self, file_path, ref, streamed=False, action=None, chunk_size=1024, **kwargs): """Return the content of a file for a commit. Args: ref (str): ID of the commit filepath (str): Path of the file to return streamed (bool): If True the data will be processed by chunks of ...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def content(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Return the content of a snippet. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment. action (callable): Calla...
def content(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Return the content of a snippet. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for treatment. action (callable): Calla...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def download(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Download the archive of a project export. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for reatment action (callable...
def download(self, streamed=False, action=None, chunk_size=1024, **kwargs): """Download the archive of a project export. Args: streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `action` for reatment action (callable...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def repository_raw_blob( self, sha, streamed=False, action=None, chunk_size=1024, **kwargs ): """Return the raw file contents for a blob. Args: sha(str): ID of the blob streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `act...
def repository_raw_blob( self, sha, streamed=False, action=None, chunk_size=1024, **kwargs ): """Return the raw file contents for a blob. Args: sha(str): ID of the blob streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passed to `act...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def repository_archive( self, sha=None, streamed=False, action=None, chunk_size=1024, **kwargs ): """Return a tarball of the repository. Args: sha (str): ID of the commit (default branch by default) streamed (bool): If True the data will be processed by chunks of `chunk_size` an...
def repository_archive( self, sha=None, streamed=False, action=None, chunk_size=1024, **kwargs ): """Return a tarball of the repository. Args: sha (str): ID of the commit (default branch by default) streamed (bool): If True the data will be processed by chunks of `chunk_size` an...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def snapshot(self, wiki=False, streamed=False, action=None, chunk_size=1024, **kwargs): """Return a snapshot of the repository. Args: wiki (bool): If True return the wiki repository streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passe...
def snapshot(self, wiki=False, streamed=False, action=None, chunk_size=1024, **kwargs): """Return a snapshot of the repository. Args: wiki (bool): If True return the wiki repository streamed (bool): If True the data will be processed by chunks of `chunk_size` and each chunk is passe...
https://github.com/python-gitlab/python-gitlab/issues/683
(venv) ╭─user ~/Repositories/ExampleRepo ‹feature/ci-ci-testing*› ╰─$ python gitlab_artifact.py 1 ↵ Traceback (most recent call last): File "gitlab_artifact.py", line 60, in <module> main() File "gitlab_artifact.py", line 52, in main a = most_recent_job.artifact("ExampleRepo/cached...
AttributeError
def __enter__(self): """ Performs some basic checks and returns itself when everything is ready to invoke a Lambda function. :returns InvokeContext: Returns this object """ # Grab template from file and create a provider self._template_dict = self._get_template_data(self._template_file) se...
def __enter__(self): """ Performs some basic checks and returns itself when everything is ready to invoke a Lambda function. :returns InvokeContext: Returns this object """ # Grab template from file and create a provider self._template_dict = self._get_template_data(self._template_file) se...
https://github.com/aws/aws-sam-cli/issues/1392
2019-08-30 16:23:41 Starting Build inside a container 2019-08-30 16:23:46 Building resource 'Function' Traceback (most recent call last): File "runpy.py", line 193, in _run_module_as_main File "runpy.py", line 85, in _run_code File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\__main__.py", line 1...
pywintypes.error
def is_docker_reachable(self): """ Checks if Docker daemon is running. This is required for us to invoke the function locally Returns ------- bool True, if Docker is available, False otherwise """ errors = ( docker.errors.APIError, requests.exceptions.ConnectionError...
def is_docker_reachable(self): """ Checks if Docker daemon is running. This is required for us to invoke the function locally Returns ------- bool True, if Docker is available, False otherwise """ try: self.docker_client.ping() return True # When Docker is not ...
https://github.com/aws/aws-sam-cli/issues/1392
2019-08-30 16:23:41 Starting Build inside a container 2019-08-30 16:23:46 Building resource 'Function' Traceback (most recent call last): File "runpy.py", line 193, in _run_module_as_main File "runpy.py", line 85, in _run_code File "C:\Program Files\Amazon\AWSSAMCLI\runtime\lib\site-packages\samcli\__main__.py", line 1...
pywintypes.error
def _convert_sam_function_resource(name, resource_properties, layers): """ Converts a AWS::Serverless::Function resource to a Function configuration usable by the provider. :param string name: LogicalID of the resource NOTE: This is *not* the function name because not all functions declare a name ...
def _convert_sam_function_resource(name, resource_properties, layers): """ Converts a AWS::Serverless::Function resource to a Function configuration usable by the provider. :param string name: LogicalID of the resource NOTE: This is *not* the function name because not all functions declare a name ...
https://github.com/aws/aws-sam-cli/issues/925
2019-01-11 00:29:55 Found one Lambda function with name 'provisionAppSlaves' 2019-01-11 00:29:55 Found one Lambda function with name 'provisionSeleniumStandalones' 2019-01-11 00:29:55 Invoking index.provisionAppSlaves (nodejs8.10) 2019-01-11 00:29:55 Invoking index.provisionSeleniumStandalones (nodejs8.10) 2019-01-11 0...
TypeError
def installation_id(self): """ Returns the installation UUID for this AWS SAM CLI installation. If the installation id has not yet been set, it will be set before returning. Examples -------- >>> gc = GlobalConfig() >>> gc.installation_id "7b7d4db7-2f54-45ba-bf2f-a2cbc9e74a34" >>>...
def installation_id(self): """ Returns the installation UUID for this AWS SAM CLI installation. If the installation id has not yet been set, it will be set before returning. Examples -------- >>> gc = GlobalConfig() >>> gc.installation_id "7b7d4db7-2f54-45ba-bf2f-a2cbc9e74a34" >>>...
https://github.com/aws/aws-sam-cli/issues/1313
$ docker run -t -d -u 3000:100 --network=host -w /data/hudson/workspace/loper-portal_feature_jenkinstest -v /data/hudson/workspace/loper-portal_feature_jenkinstest:/data/hudson/workspace/loper-portal_feature_jenkinstest:rw,z -v /data/hudson/workspace/loper-portal_feature_jenkinstest@tmp:/data/hudson/workspace/loper-por...
OSError
def _create_dir(self): """ Creates configuration directory if it does not already exist, otherwise does nothing. May raise an OSError if we do not have permissions to create the directory. """ self.config_dir.mkdir(mode=0o700, parents=True, exist_ok=True)
def _create_dir(self): self.config_dir.mkdir(mode=0o700, parents=True, exist_ok=True)
https://github.com/aws/aws-sam-cli/issues/1313
$ docker run -t -d -u 3000:100 --network=host -w /data/hudson/workspace/loper-portal_feature_jenkinstest -v /data/hudson/workspace/loper-portal_feature_jenkinstest:/data/hudson/workspace/loper-portal_feature_jenkinstest:rw,z -v /data/hudson/workspace/loper-portal_feature_jenkinstest@tmp:/data/hudson/workspace/loper-por...
OSError
def create(self): """ Calls Docker API to creates the Docker container instance. Creating the container does *not* run the container. Use ``start`` method to run the container :return string: ID of the created container :raise RuntimeError: If this method is called after a container already has bee...
def create(self): """ Calls Docker API to creates the Docker container instance. Creating the container does *not* run the container. Use ``start`` method to run the container :return string: ID of the created container :raise RuntimeError: If this method is called after a container already has bee...
https://github.com/aws/aws-sam-cli/issues/669
+ sam local start-api --docker-network host --debug 2018-09-17 11:36:54 local start-api command is called 2018-09-17 11:36:54 2 resources found in the template 2018-09-17 11:36:54 Found Serverless function with name='ExampleFunction' and CodeUri='.' 2018-09-17 11:36:54 Trying paths: ['/home/xyz/.docker/config.json', '/...
APIError