Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==> Starting check()...
- ================================================ test session starts =================================================
- platform linux -- Python 3.5.1, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
- rootdir: /tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0, inifile:
- collected 795 items / 1 errors / 4 skipped
- dask/array/tests/test_array_core.py ...................................................................................................................s.............
- dask/array/tests/test_chunk.py .....
- dask/array/tests/test_creation.py ....xx
- dask/array/tests/test_ghost.py ................x..
- dask/array/tests/test_optimization.py ......
- dask/array/tests/test_percentiles.py ..
- dask/array/tests/test_random.py ..............
- dask/array/tests/test_rechunk.py .................
- dask/array/tests/test_reductions.py ............
- dask/array/tests/test_slicing.py ......................
- dask/array/tests/test_wrap.py .......
- dask/bag/tests/test_bag.py ..................................s.......s.............................
- dask/dataframe/tests/test_arithmetics_reduction.py FF..F......
- dask/dataframe/tests/test_categorical.py ....
- dask/dataframe/tests/test_dataframe.py ..............F..........................F........FF......F............F......................
- dask/dataframe/tests/test_demo.py ..
- dask/dataframe/tests/test_groupby.py ...........
- dask/dataframe/tests/test_io.py ................................sssss.x..........s.......s....
- dask/dataframe/tests/test_multi.py FF.F.FFFF
- dask/dataframe/tests/test_optimize_dataframe.py ..
- dask/dataframe/tests/test_rolling.py ....
- dask/dataframe/tests/test_shuffle.py .....
- dask/dataframe/tests/test_utils_dataframe.py .
- dask/dataframe/tseries/tests/test_resample.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.
- dask/diagnostics/tests/test_profiler.py .....ssssssss
- dask/diagnostics/tests/test_progress.py ......s..
- dask/store/tests/test_store.py ..
- dask/tests/test_async.py ..............
- dask/tests/test_base.py ....................s
- dask/tests/test_context.py ..
- dask/tests/test_core.py ....................
- dask/tests/test_imperative.py .............x.........
- dask/tests/test_multiprocessing.py .......
- dask/tests/test_optimize.py ...................
- dask/tests/test_order.py .......
- dask/tests/test_rewrite.py ........
- dask/tests/test_threaded.py .....
- dask/tests/test_utils.py ........
- ======================================================= ERRORS =======================================================
- __________________________________ ERROR collecting dask/array/tests/test_linalg.py __________________________________
- dask/array/tests/test_linalg.py:7: in <module>
- import scipy.linalg
- E ImportError: No module named 'scipy'
- ====================================================== FAILURES ======================================================
- __________________________________________________ test_arithmetics __________________________________________________
- def test_arithmetics():
- dsk = {('x', 0): pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]},
- index=[0, 1, 3]),
- ('x', 1): pd.DataFrame({'a': [4, 5, 6], 'b': [3, 2, 1]},
- index=[5, 6, 8]),
- ('x', 2): pd.DataFrame({'a': [7, 8, 9], 'b': [0, 0, 0]},
- index=[9, 9, 9])}
- ddf1 = dd.DataFrame(dsk, 'x', ['a', 'b'], [0, 4, 9, 9])
- pdf1 = ddf1.compute()
- pdf2 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8],
- 'b': [5, 6, 7, 8, 1, 2, 3, 4]})
- pdf3 = pd.DataFrame({'a': [5, 6, 7, 8, 4, 3, 2, 1],
- 'b': [2, 4, 5, 3, 4, 2, 1, 0]})
- ddf2 = dd.from_pandas(pdf2, 3)
- ddf3 = dd.from_pandas(pdf3, 2)
- dsk4 = {('y', 0): pd.DataFrame({'a': [3, 2, 1], 'b': [7, 8, 9]},
- index=[0, 1, 3]),
- ('y', 1): pd.DataFrame({'a': [5, 2, 8], 'b': [4, 2, 3]},
- index=[5, 6, 8]),
- ('y', 2): pd.DataFrame({'a': [1, 4, 10], 'b': [1, 0, 5]},
- index=[9, 9, 9])}
- ddf4 = dd.DataFrame(dsk4, 'y', ['a', 'b'], [0, 4, 9, 9])
- pdf4 =ddf4.compute()
- # Arithmetics
- cases = [(ddf1, ddf1, pdf1, pdf1),
- (ddf1, ddf1.repartition([0, 1, 3, 6, 9]), pdf1, pdf1),
- (ddf2, ddf3, pdf2, pdf3),
- (ddf2.repartition([0, 3, 6, 7]), ddf3.repartition([0, 7]),
- pdf2, pdf3),
- (ddf2.repartition([0, 7]), ddf3.repartition([0, 2, 4, 5, 7]),
- pdf2, pdf3),
- (ddf1, ddf4, pdf1, pdf4),
- (ddf1, ddf4.repartition([0, 9]), pdf1, pdf4),
- (ddf1.repartition([0, 3, 9]), ddf4.repartition([0, 5, 9]),
- pdf1, pdf4),
- # dask + pandas
- (ddf1, pdf4, pdf1, pdf4), (ddf2, pdf3, pdf2, pdf3)]
- for (l, r, el, er) in cases:
- > check_series_arithmetics(l.a, r.b, el.a, er.b)
- dask/dataframe/tests/test_arithmetics_reduction.py:54:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/tests/test_arithmetics_reduction.py:216: in check_series_arithmetics
- assert eq(r, er)
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Int64Index([1, 3], dtype='int64'), label = 3, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- __________________________________________ test_arithmetics_different_index __________________________________________
- def test_arithmetics_different_index():
- # index are different, but overwraps
- pdf1 = pd.DataFrame({'a': [1, 2, 3, 4, 5], 'b': [3, 5, 2, 5, 7]},
- index=[1, 2, 3, 4, 5])
- ddf1 = dd.from_pandas(pdf1, 2)
- pdf2 = pd.DataFrame({'a': [3, 2, 6, 7, 8], 'b': [9, 4, 2, 6, 2]},
- index=[3, 4, 5, 6, 7])
- ddf2 = dd.from_pandas(pdf2, 2)
- # index are not overwrapped
- pdf3 = pd.DataFrame({'a': [1, 2, 3, 4, 5], 'b': [3, 5, 2, 5, 7]},
- index=[1, 2, 3, 4, 5])
- ddf3 = dd.from_pandas(pdf3, 2)
- pdf4 = pd.DataFrame({'a': [3, 2, 6, 7, 8], 'b': [9, 4, 2, 6, 2]},
- index=[10, 11, 12, 13, 14])
- ddf4 = dd.from_pandas(pdf4, 2)
- # index is included in another
- pdf5 = pd.DataFrame({'a': [1, 2, 3, 4, 5], 'b': [3, 5, 2, 5, 7]},
- index=[1, 3, 5, 7, 9])
- ddf5 = dd.from_pandas(pdf5, 2)
- pdf6 = pd.DataFrame({'a': [3, 2, 6, 7, 8], 'b': [9, 4, 2, 6, 2]},
- index=[2, 3, 4, 5, 6])
- ddf6 = dd.from_pandas(pdf6, 2)
- cases = [(ddf1, ddf2, pdf1, pdf2),
- (ddf2, ddf1, pdf2, pdf1),
- (ddf1.repartition([1, 3, 5]), ddf2.repartition([3, 4, 7]),
- pdf1, pdf2),
- (ddf2.repartition([3, 4, 5, 7]), ddf1.repartition([1, 2, 4, 5]),
- pdf2, pdf1),
- (ddf3, ddf4, pdf3, pdf4),
- (ddf4, ddf3, pdf4, pdf3),
- (ddf3.repartition([1, 2, 3, 4, 5]),
- ddf4.repartition([10, 11, 12, 13, 14]), pdf3, pdf4),
- (ddf4.repartition([10, 14]), ddf3.repartition([1, 3, 4, 5]),
- pdf4, pdf3),
- (ddf5, ddf6, pdf5, pdf6),
- (ddf6, ddf5, pdf6, pdf5),
- (ddf5.repartition([1, 7, 8, 9]), ddf6.repartition([2, 3, 4, 6]),
- pdf5, pdf6),
- (ddf6.repartition([2, 6]), ddf5.repartition([1, 3, 7, 9]),
- pdf6, pdf5),
- # dask + pandas
- (ddf1, pdf2, pdf1, pdf2), (ddf2, pdf1, pdf2, pdf1),
- (ddf3, pdf4, pdf3, pdf4), (ddf4, pdf3, pdf4, pdf3),
- (ddf5, pdf6, pdf5, pdf6), (ddf6, pdf5, pdf6, pdf5)]
- for (l, r, el, er) in cases:
- check_series_arithmetics(l.a, r.b, el.a, er.b,
- > allow_comparison_ops=False)
- dask/dataframe/tests/test_arithmetics_reduction.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/tests/test_arithmetics_reduction.py:218: in check_series_arithmetics
- assert eq(l + r, el + er)
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:487: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Int64Index([4, 5], dtype='int64'), label = 5, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- ________________________________________ test_frame_series_arithmetic_methods ________________________________________
- def test_frame_series_arithmetic_methods():
- pdf1 = pd.DataFrame({'A': np.arange(10),
- 'B': [np.nan, 1, 2, 3, 4] * 2,
- 'C': [np.nan] * 10,
- 'D': np.arange(10)},
- index=list('abcdefghij'), columns=list('ABCD'))
- pdf2 = pd.DataFrame(np.random.randn(10, 4),
- index=list('abcdefghjk'), columns=list('ABCX'))
- ps1 = pdf1.A
- ps2 = pdf2.A
- ddf1 = dd.from_pandas(pdf1, 2)
- ddf2 = dd.from_pandas(pdf2, 2)
- ds1 = ddf1.A
- ds2 = ddf2.A
- s = dd.core.Scalar({('s', 0): 4}, 's')
- for l, r, el, er in [(ddf1, ddf2, pdf1, pdf2), (ds1, ds2, ps1, ps2),
- (ddf1.repartition(['a', 'f', 'j']), ddf2, pdf1, pdf2),
- (ds1.repartition(['a', 'b', 'f', 'j']), ds2, ps1, ps2),
- (ddf1, ddf2.repartition(['a', 'k']), pdf1, pdf2),
- (ds1, ds2.repartition(['a', 'b', 'd', 'h', 'k']), ps1, ps2),
- (ddf1, 3, pdf1, 3), (ds1, 3, ps1, 3),
- (ddf1, s, pdf1, 4), (ds1, s, ps1, 4)]:
- # l, r may be repartitioned, test whether repartition keeps original data
- assert eq(l, el)
- assert eq(r, er)
- > assert eq(l.add(r, fill_value=0), el.add(er, fill_value=0))
- dask/dataframe/tests/test_arithmetics_reduction.py:500:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Index(['f', 'g', 'h', 'j'], dtype='object'), label = 'j', side = 'left', kind = 'string'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'string' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- __________________________________________________ test_where_mask ___________________________________________________
- def test_where_mask():
- pdf1 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
- 'b': [3, 5, 2, 5, 7, 2, 4, 2, 4]})
- ddf1 = dd.from_pandas(pdf1, 2)
- pdf2 = pd.DataFrame({'a': [True, False, True] * 3,
- 'b': [False, False, True] * 3})
- ddf2 = dd.from_pandas(pdf2, 2)
- # different index
- pdf3 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
- 'b': [3, 5, 2, 5, 7, 2, 4, 2, 4]},
- index=[0, 1, 2, 3, 4, 5, 6, 7, 8])
- ddf3 = dd.from_pandas(pdf3, 2)
- pdf4 = pd.DataFrame({'a': [True, False, True] * 3,
- 'b': [False, False, True] * 3},
- index=[5, 6, 7, 8, 9, 10, 11, 12, 13])
- ddf4 = dd.from_pandas(pdf4, 2)
- # different columns
- pdf5 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
- 'b': [9, 4, 2, 6, 2, 3, 1, 6, 2],
- 'c': [5, 6, 7, 8, 9, 10, 11, 12, 13]},
- index=[0, 1, 2, 3, 4, 5, 6, 7, 8])
- ddf5 = dd.from_pandas(pdf5, 2)
- pdf6 = pd.DataFrame({'a': [True, False, True] * 3,
- 'b': [False, False, True] * 3,
- 'd': [False] * 9,
- 'e': [True] * 9},
- index=[5, 6, 7, 8, 9, 10, 11, 12, 13])
- ddf6 = dd.from_pandas(pdf6, 2)
- cases = [(ddf1, ddf2, pdf1, pdf2),
- (ddf1.repartition([0, 3, 6, 8]), ddf2, pdf1, pdf2),
- (ddf1, ddf4, pdf3, pdf4),
- (ddf3.repartition([0, 4, 6, 8]), ddf4.repartition([5, 9, 10, 13]),
- pdf3, pdf4),
- (ddf5, ddf6, pdf5, pdf6),
- (ddf5.repartition([0, 4, 7, 8]), ddf6, pdf5, pdf6),
- # use pd.DataFrame as cond
- (ddf1, pdf2, pdf1, pdf2),
- (ddf1, pdf4, pdf3, pdf4),
- (ddf5, pdf6, pdf5, pdf6)]
- for ddf, ddcond, pdf, pdcond in cases:
- assert isinstance(ddf, dd.DataFrame)
- assert isinstance(ddcond, (dd.DataFrame, pd.DataFrame))
- assert isinstance(pdf, pd.DataFrame)
- assert isinstance(pdcond, pd.DataFrame)
- > assert eq(ddf.where(ddcond), pdf.where(pdcond))
- dask/dataframe/tests/test_dataframe.py:282:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = RangeIndex(start=5, stop=7, step=1), label = 6, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- ____________________________________________________ test_getitem ____________________________________________________
- def test_getitem():
- df = pd.DataFrame({'A': [1, 2, 3, 4, 5, 6, 7, 8, 9],
- 'B': [9, 8, 7, 6, 5, 4, 3, 2, 1],
- 'C': [True, False, True] * 3},
- columns=list('ABC'))
- ddf = dd.from_pandas(df, 2)
- assert eq(ddf['A'], df['A'])
- tm.assert_series_equal(ddf['A']._pd, ddf._pd['A']) # check cache consistency
- assert eq(ddf[['A', 'B']], df[['A', 'B']])
- tm.assert_frame_equal(ddf[['A', 'B']]._pd, ddf._pd[['A', 'B']])
- assert eq(ddf[ddf.C], df[df.C])
- tm.assert_series_equal(ddf.C._pd, ddf._pd.C)
- > assert eq(ddf[ddf.C.repartition([0, 2, 5, 8])], df[df.C])
- dask/dataframe/tests/test_dataframe.py:659:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:487: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = RangeIndex(start=2, stop=5, step=1), label = 5, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- _________________________________________ test_concat4_interleave_partitions _________________________________________
- def test_concat4_interleave_partitions():
- pdf1 = pd.DataFrame(np.random.randn(10, 5),
- columns=list('ABCDE'), index=list('abcdefghij'))
- pdf2 = pd.DataFrame(np.random.randn(13, 5),
- columns=list('ABCDE'), index=list('fghijklmnopqr'))
- pdf3 = pd.DataFrame(np.random.randn(13, 6),
- columns=list('CDEXYZ'), index=list('fghijklmnopqr'))
- ddf1 = dd.from_pandas(pdf1, 2)
- ddf2 = dd.from_pandas(pdf2, 3)
- ddf3 = dd.from_pandas(pdf3, 2)
- msg = ('All inputs have known divisions which cannnot be '
- 'concatenated in order. Specify '
- 'interleave_partitions=True to ignore order')
- cases = [[ddf1, ddf1], [ddf1, ddf2], [ddf1, ddf3], [ddf2, ddf1],
- [ddf2, ddf3], [ddf3, ddf1], [ddf3, ddf2]]
- for case in cases:
- pdcase = [c.compute() for c in case]
- with tm.assertRaisesRegexp(ValueError, msg):
- dd.concat(case)
- > assert eq(dd.concat(case, interleave_partitions=True),
- pd.concat(pdcase))
- dask/dataframe/tests/test_dataframe.py:826:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:487: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Index(['a', 'b', 'c', 'd', 'e'], dtype='object'), label = 'f', side = 'left', kind = 'string'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'string' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- ____________________________________________________ test_concat5 ____________________________________________________
- def test_concat5():
- pdf1 = pd.DataFrame(np.random.randn(7, 5),
- columns=list('ABCDE'), index=list('abcdefg'))
- pdf2 = pd.DataFrame(np.random.randn(7, 6),
- columns=list('FGHIJK'), index=list('abcdefg'))
- pdf3 = pd.DataFrame(np.random.randn(7, 6),
- columns=list('FGHIJK'), index=list('cdefghi'))
- pdf4 = pd.DataFrame(np.random.randn(7, 5),
- columns=list('FGHAB'), index=list('cdefghi'))
- pdf5 = pd.DataFrame(np.random.randn(7, 5),
- columns=list('FGHAB'), index=list('fklmnop'))
- ddf1 = dd.from_pandas(pdf1, 2)
- ddf2 = dd.from_pandas(pdf2, 3)
- ddf3 = dd.from_pandas(pdf3, 2)
- ddf4 = dd.from_pandas(pdf4, 2)
- ddf5 = dd.from_pandas(pdf5, 3)
- cases = [[ddf1, ddf2], [ddf1, ddf3], [ddf1, ddf4], [ddf1, ddf5],
- [ddf3, ddf4], [ddf3, ddf5], [ddf5, ddf1, ddf4], [ddf5, ddf3],
- [ddf1.A, ddf4.A], [ddf2.F, ddf3.F], [ddf4.A, ddf5.A],
- [ddf1.A, ddf4.F], [ddf2.F, ddf3.H], [ddf4.A, ddf5.B],
- [ddf1, ddf4.A], [ddf3.F, ddf2], [ddf5, ddf1.A, ddf2]]
- for case in cases:
- pdcase = [c.compute() for c in case]
- > assert eq(dd.concat(case, interleave_partitions=True),
- pd.concat(pdcase))
- dask/dataframe/tests/test_dataframe.py:863:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Index(['d', 'e'], dtype='object'), label = 'e', side = 'left', kind = 'string'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'string' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- __________________________________________________ test_repartition __________________________________________________
- def test_repartition():
- def _check_split_data(orig, d):
- """Check data is split properly"""
- keys = [k for k in d.dask if k[0].startswith('repartition-split')]
- keys = sorted(keys)
- sp = pd.concat([d._get(d.dask, k) for k in keys])
- assert eq(orig, sp)
- assert eq(orig, d)
- df = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6], 'y': list('abdabd')},
- index=[10, 20, 30, 40, 50, 60])
- a = dd.from_pandas(df, 2)
- b = a.repartition(divisions=[10, 20, 50, 60])
- assert b.divisions == (10, 20, 50, 60)
- > assert eq(a, b)
- dask/dataframe/tests/test_dataframe.py:1030:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:165: in eq
- b = _check_dask(b, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Int64Index([10, 20], dtype='int64'), label = 20, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- _____________________________________________________ test_query _____________________________________________________
- def test_query():
- df = pd.DataFrame({'x': [1, 2, 3, 4], 'y': [5, 6, 7, 8]})
- a = dd.from_pandas(df, npartitions=2)
- > q = a.query('x**2 > y')
- dask/dataframe/tests/test_dataframe.py:1244:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:1419: in query
- dummy = self._pd.query(expr, **kwargs)
- /usr/lib/python3.5/site-packages/pandas/core/frame.py:2140: in query
- res = self.eval(expr, **kwargs)
- /usr/lib/python3.5/site-packages/pandas/core/frame.py:2209: in eval
- return _eval(expr, inplace=inplace, **kwargs)
- /usr/lib/python3.5/site-packages/pandas/computation/eval.py:233: in eval
- _check_engine(engine)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- engine = 'numexpr'
- def _check_engine(engine):
- """Make sure a valid engine is passed.
- Parameters
- ----------
- engine : str
- Raises
- ------
- KeyError
- * If an invalid engine is passed
- ImportError
- * If numexpr was requested but doesn't exist
- """
- if engine not in _engines:
- raise KeyError('Invalid engine {0!r} passed, valid engines are'
- ' {1}'.format(engine, list(_engines.keys())))
- # TODO: validate this in a more general way (thinking of future engines
- # that won't necessarily be import-able)
- # Could potentially be done on engine instantiation
- if engine == 'numexpr':
- if not _NUMEXPR_INSTALLED:
- > raise ImportError("'numexpr' is not installed or an "
- "unsupported version. Cannot use "
- "engine='numexpr' for query/eval "
- "if 'numexpr' is not installed")
- E ImportError: 'numexpr' is not installed or an unsupported version. Cannot use engine='numexpr' for query/eval if 'numexpr' is not installed
- /usr/lib/python3.5/site-packages/pandas/computation/eval.py:39: ImportError
- _______________________________________________ test_align_partitions ________________________________________________
- def test_align_partitions():
- A = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6], 'y': list('abdabd')},
- index=[10, 20, 30, 40, 50, 60])
- a = dd.repartition(A, [10, 40, 60])
- B = pd.DataFrame({'x': [1, 2, 3, 4], 'y': list('abda')},
- index=[30, 70, 80, 100])
- b = dd.repartition(B, [30, 80, 100])
- s = dd.core.Scalar({('s', 0): 10}, 's')
- (aa, bb), divisions, L = align_partitions(a, b)
- def _check(a, b, aa, bb):
- assert isinstance(a, dd.DataFrame)
- assert isinstance(b, dd.DataFrame)
- assert isinstance(aa, dd.DataFrame)
- assert isinstance(bb, dd.DataFrame)
- assert eq(a, aa)
- assert eq(b, bb)
- assert divisions == (10, 30, 40, 60, 80, 100)
- assert isinstance(L, list)
- assert len(divisions) == 1 + len(L)
- > _check(a, b, aa, bb)
- dask/dataframe/tests/test_multi.py:37:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/tests/test_multi.py:31: in _check
- assert eq(a, aa)
- dask/dataframe/utils.py:165: in eq
- b = _check_dask(b, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Int64Index([40, 50, 60], dtype='int64'), label = 60, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- __________________________________ test_join_indexed_dataframe_to_indexed_dataframe __________________________________
- def test_join_indexed_dataframe_to_indexed_dataframe():
- A = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6]},
- index=[1, 2, 3, 4, 6, 7])
- a = dd.repartition(A, [1, 4, 7])
- B = pd.DataFrame({'y': list('abcdef')},
- index=[1, 2, 4, 5, 6, 8])
- b = dd.repartition(B, [1, 2, 5, 8])
- c = join_indexed_dataframes(a, b, how='left')
- assert c.divisions[0] == a.divisions[0]
- assert c.divisions[-1] == max(a.divisions + b.divisions)
- > tm.assert_frame_equal(c.compute(), A.join(B))
- dask/dataframe/tests/test_multi.py:95:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/threaded.py:57: in get
- **kwargs)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- apply_async = <bound method Pool.apply_async of <multiprocessing.pool.ThreadPool object at 0x7f62d8ed3a90>>
- num_workers = 8
- dsk = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0): (<function DataFrame.join at 0x7f62d4111c80>, ('repartition-mer...28ac5c289bbc5cdef87ebe4e8', 3), ('repartition-merge-059c7672a9d8eb1091588084fdbca872', 3), None, 'left', '', ...), ...}
- result = [[('join-indexed-994753168c44e38c5ec7be48d19709cc', 0), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1), ('join-i...09cc', 2), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 4)]]
- cache = None, queue = <queue.Queue object at 0x7f629f32b1d0>, get_id = <function _thread_get_id at 0x7f62d31d49d8>
- raise_on_exception = False, rerun_exceptions_locally = False, callbacks = set(), kwargs = {}, start_cbs = ()
- posttask_cbs = (), finish_cbs = ()
- result_flat = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1), ('join-in...709cc', 2), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 4)}
- results = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1), ('join-in...709cc', 2), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 4)}
- keyorder = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0): 24, ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1): 18, ('join-indexed-994753168c44e38c5ec7be48d19709cc', 2): 12, ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3): 0, ...}
- def get_async(apply_async, num_workers, dsk, result, cache=None,
- queue=None, get_id=default_get_id, raise_on_exception=False,
- rerun_exceptions_locally=None, callbacks=None, **kwargs):
- """ Asynchronous get function
- This is a general version of various asynchronous schedulers for dask. It
- takes a an apply_async function as found on Pool objects to form a more
- specific ``get`` method that walks through the dask array with parallel
- workers, avoiding repeat computation and minimizing memory use.
- This function evaluates the entire graph, regardless of the given output
- keys. You may want to cull your graph ahead of time with
- ``dask.optimize.cull``.
- Parameters
- ----------
- apply_async : function
- Asynchronous apply function as found on Pool or ThreadPool
- num_workers : int
- The number of active tasks we should have at any one time
- dsk: dict
- A dask dictionary specifying a workflow
- result : key or list of keys
- Keys corresponding to desired data
- cache : dict-like, optional
- Temporary storage of results
- get_id : callable, optional
- Function to return the worker id, takes no arguments. Examples are
- `threading.current_thread` and `multiprocessing.current_process`.
- rerun_exceptions_locally : bool, optional
- Whether to rerun failing tasks in local process to enable debugging
- (False by default)
- callbacks : tuple or list of tuples, optional
- Callbacks are passed in as tuples of length 4. Multiple sets of
- callbacks may be passed in as a list of tuples. For more information,
- see the dask.diagnostics documentation.
- See Also
- --------
- threaded.get
- """
- assert queue
- if callbacks is None:
- callbacks = _globals['callbacks']
- start_cbs, pretask_cbs, posttask_cbs, finish_cbs = unpack_callbacks(callbacks)
- if isinstance(result, list):
- result_flat = set(flatten(result))
- else:
- result_flat = set([result])
- results = set(result_flat)
- dsk = dsk.copy()
- for f in start_cbs:
- f(dsk)
- dsk = cull(dsk, list(results))
- keyorder = order(dsk)
- state = start_state_from_dask(dsk, cache=cache, sortkey=keyorder.get)
- if rerun_exceptions_locally is None:
- rerun_exceptions_locally = _globals.get('rerun_exceptions_locally', False)
- if state['waiting'] and not state['ready']:
- raise ValueError("Found no accessible jobs in dask")
- def fire_task():
- """ Fire off a task to the thread pool """
- # Choose a good task to compute
- key = state['ready'].pop()
- state['running'].add(key)
- for f in pretask_cbs:
- f(key, dsk, state)
- # Prep data to send
- data = dict((dep, state['cache'][dep])
- for dep in get_dependencies(dsk, key))
- # Submit
- apply_async(execute_task, args=[key, dsk[key], data, queue,
- get_id, raise_on_exception])
- # Seed initial tasks into the thread pool
- while state['ready'] and len(state['running']) < num_workers:
- fire_task()
- # Main loop, wait on tasks to finish, insert new ones
- while state['waiting'] or state['ready'] or state['running']:
- try:
- key, res, tb, worker_id = queue.get()
- except KeyboardInterrupt:
- for f in finish_cbs:
- f(dsk, state, True)
- raise
- if isinstance(res, Exception):
- for f in finish_cbs:
- f(dsk, state, True)
- if rerun_exceptions_locally:
- data = dict((dep, state['cache'][dep])
- for dep in get_dependencies(dsk, key))
- task = dsk[key]
- _execute_task(task, data) # Re-execute locally
- else:
- > raise(remote_exception(res, tb))
- E dask.async.AssertionError: assert 'integer' in ['ix', 'loc', 'getitem', None]
- E
- E Traceback
- E ---------
- E File "/tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0/dask/async.py", line 264, in execute_task
- E result = _execute_task(task, data)
- E File "/tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0/dask/async.py", line 246, in _execute_task
- E return func(*args2)
- E File "/tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0/dask/dataframe/core.py", line 1691, in _loc
- E result.index.inferred_type)
- E File "/usr/lib/python3.5/site-packages/pandas/indexes/base.py", line 2807, in get_slice_bound
- E assert kind in ['ix', 'loc', 'getitem', None]
- dask/async.py:481: AssertionError
- ________________________________________________ test_indexed_concat _________________________________________________
- def test_indexed_concat():
- A = pd.DataFrame({'x': [1, 2, 3, 4, 6, 7], 'y': list('abcdef')},
- index=[1, 2, 3, 4, 6, 7])
- a = dd.repartition(A, [1, 4, 7])
- B = pd.DataFrame({'x': [10, 20, 40, 50, 60, 80]},
- index=[1, 2, 4, 5, 6, 8])
- b = dd.repartition(B, [1, 2, 5, 8])
- for join in ['inner', 'outer']:
- result = concat_indexed_dataframes([a, b], join=join)
- expected = pd.concat([A, B], axis=0, join=join)
- > assert eq(result, expected)
- dask/dataframe/tests/test_multi.py:185:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Int64Index([6, 7], dtype='int64'), label = 7, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- _____________________________________________________ test_merge _____________________________________________________
- def test_merge():
- A = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6], 'y': [1, 1, 2, 2, 3, 4]})
- a = dd.repartition(A, [0, 4, 5])
- B = pd.DataFrame({'y': [1, 3, 4, 4, 5, 6], 'z': [6, 5, 4, 3, 2, 1]})
- b = dd.repartition(B, [0, 2, 5])
- eq(dd.merge(a, b, left_index=True, right_index=True),
- > pd.merge(A, B, left_index=True, right_index=True))
- dask/dataframe/tests/test_multi.py:238:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = RangeIndex(start=0, stop=3, step=1), label = 2, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- ____________________________________________ test_merge_by_index_patterns ____________________________________________
- def test_merge_by_index_patterns():
- pdf1l = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7],
- 'b': [7, 6, 5, 4, 3, 2, 1]})
- pdf1r = pd.DataFrame({'c': [1, 2, 3, 4, 5, 6, 7],
- 'd': [7, 6, 5, 4, 3, 2, 1]})
- pdf2l = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7],
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf2r = pd.DataFrame({'c': [7, 6, 5, 4, 3, 2, 1],
- 'd': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf3l = pdf2l
- pdf3r = pd.DataFrame({'c': [6, 7, 8, 9],
- 'd': [5, 4, 3, 2]},
- index=list('abdg'))
- pdf4l = pdf2l
- pdf4r = pd.DataFrame({'c': [9, 10, 11, 12],
- 'd': [5, 4, 3, 2]},
- index=list('abdg'))
- # completely different index
- pdf5l = pd.DataFrame({'a': [1, 1, 2, 2, 3, 3, 4],
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('lmnopqr'))
- pdf5r = pd.DataFrame({'c': [1, 1, 1, 1],
- 'd': [5, 4, 3, 2]},
- index=list('abcd'))
- pdf6l = pd.DataFrame({'a': [1, 1, 2, 2, 3, 3, 4],
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('cdefghi'))
- pdf6r = pd.DataFrame({'c': [1, 2, 1, 2],
- 'd': [5, 4, 3, 2]},
- index=list('abcd'))
- pdf7l = pd.DataFrame({'a': [1, 1, 2, 2, 3, 3, 4],
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf7r = pd.DataFrame({'c': [5, 6, 7, 8],
- 'd': [5, 4, 3, 2]},
- index=list('fghi'))
- for pdl, pdr in [(pdf1l, pdf1r), (pdf2l, pdf2r), (pdf3l, pdf3r),
- (pdf4l, pdf4r), (pdf5l, pdf5r), (pdf6l, pdf6r),
- (pdf7l, pdf7r)]:
- for lpart, rpart in [(2, 2), # same partition
- (3, 2), # left npartition > right npartition
- (2, 3)]: # left npartition < right npartition
- ddl = dd.from_pandas(pdl, lpart)
- ddr = dd.from_pandas(pdr, rpart)
- for how in ['inner', 'outer', 'left', 'right']:
- eq(dd.merge(ddl, ddr, how=how, left_index=True, right_index=True),
- > pd.merge(pdl, pdr, how=how, left_index=True, right_index=True))
- dask/dataframe/tests/test_multi.py:336:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:487: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = RangeIndex(start=0, stop=4, step=1), label = 4, side = 'left', kind = 'integer'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'integer' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- ____________________________________________ test_join_by_index_patterns _____________________________________________
- def test_join_by_index_patterns():
- # Similar test cases as test_merge_by_index_patterns,
- # but columns / index for join have same dtype
- pdf1l = pd.DataFrame({'a': list('abcdefg'),
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf1r = pd.DataFrame({'c': list('abcdefg'),
- 'd': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf2l = pdf1l
- pdf2r = pd.DataFrame({'c': list('gfedcba'),
- 'd': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf3l = pdf1l
- pdf3r = pd.DataFrame({'c': list('abdg'),
- 'd': [5, 4, 3, 2]},
- index=list('abdg'))
- pdf4l = pd.DataFrame({'a': list('abcabce'),
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf4r = pd.DataFrame({'c': list('abda'),
- 'd': [5, 4, 3, 2]},
- index=list('abdg'))
- # completely different index
- pdf5l = pd.DataFrame({'a': list('lmnopqr'),
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('lmnopqr'))
- pdf5r = pd.DataFrame({'c': list('abcd'),
- 'd': [5, 4, 3, 2]},
- index=list('abcd'))
- pdf6l = pd.DataFrame({'a': list('cdefghi'),
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('cdefghi'))
- pdf6r = pd.DataFrame({'c': list('abab'),
- 'd': [5, 4, 3, 2]},
- index=list('abcd'))
- pdf7l = pd.DataFrame({'a': list('aabbccd'),
- 'b': [7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefg'))
- pdf7r = pd.DataFrame({'c': list('aabb'),
- 'd': [5, 4, 3, 2]},
- index=list('fghi'))
- for pdl, pdr in [(pdf1l, pdf1r), (pdf2l, pdf2r), (pdf3l, pdf3r),
- (pdf4l, pdf4r), (pdf5l, pdf5r), (pdf6l, pdf6r),
- (pdf7l, pdf7r)]:
- for lpart, rpart in [(2, 2), (3, 2), (2, 3)]:
- ddl = dd.from_pandas(pdl, lpart)
- ddr = dd.from_pandas(pdr, rpart)
- for how in ['inner', 'outer', 'left', 'right']:
- > eq(ddl.join(ddr, how=how), pdl.join(pdr, how=how))
- dask/dataframe/tests/test_multi.py:426:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:462: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Index(['a', 'b', 'c', 'd'], dtype='object'), label = 'e', side = 'left', kind = 'string'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'string' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- ___________________________________________ test_merge_by_multiple_columns ___________________________________________
- def test_merge_by_multiple_columns():
- pdf1l = pd.DataFrame({'a': list('abcdefghij'),
- 'b': list('abcdefghij'),
- 'c': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},
- index=list('abcdefghij'))
- pdf1r = pd.DataFrame({'d': list('abcdefghij'),
- 'e': list('abcdefghij'),
- 'f': [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]},
- index=list('abcdefghij'))
- pdf2l = pd.DataFrame({'a': list('abcdeabcde'),
- 'b': list('abcabcabca'),
- 'c': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},
- index=list('abcdefghij'))
- pdf2r = pd.DataFrame({'d': list('edcbaedcba'),
- 'e': list('aaabbbcccd'),
- 'f': [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]},
- index=list('fghijklmno'))
- pdf3l = pd.DataFrame({'a': list('aaaaaaaaaa'),
- 'b': list('aaaaaaaaaa'),
- 'c': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},
- index=list('abcdefghij'))
- pdf3r = pd.DataFrame({'d': list('aaabbbccaa'),
- 'e': list('abbbbbbbbb'),
- 'f': [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]},
- index=list('ABCDEFGHIJ'))
- for pdl, pdr in [(pdf1l, pdf1r), (pdf2l, pdf2r), (pdf3l, pdf3r)]:
- for lpart, rpart in [(2, 2), (3, 2), (2, 3)]:
- ddl = dd.from_pandas(pdl, lpart)
- ddr = dd.from_pandas(pdr, rpart)
- for how in ['inner', 'outer', 'left', 'right']:
- > eq(ddl.join(ddr, how=how), pdl.join(pdr, how=how))
- dask/dataframe/tests/test_multi.py:492:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/utils.py:164: in eq
- a = _check_dask(a, check_names=check_names)
- dask/dataframe/utils.py:109: in _check_dask
- result = dsk.compute(get=get_sync)
- dask/base.py:37: in compute
- return compute(self, **kwargs)[0]
- dask/base.py:110: in compute
- results = get(dsk, keys, **kwargs)
- dask/async.py:516: in get_sync
- raise_on_exception=True, **kwargs)
- dask/async.py:487: in get_async
- fire_task()
- dask/async.py:458: in fire_task
- get_id, raise_on_exception])
- dask/async.py:508: in apply_sync
- return func(*args, **kwds)
- dask/async.py:264: in execute_task
- result = _execute_task(task, data)
- dask/async.py:246: in _execute_task
- return func(*args2)
- dask/dataframe/core.py:1691: in _loc
- result.index.inferred_type)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = Index(['a', 'b', 'c', 'd', 'e'], dtype='object'), label = 'f', side = 'left', kind = 'string'
- def get_slice_bound(self, label, side, kind):
- """
- Calculate slice bound that corresponds to given label.
- Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
- of given label.
- Parameters
- ----------
- label : object
- side : {'left', 'right'}
- kind : {'ix', 'loc', 'getitem'}
- """
- > assert kind in ['ix', 'loc', 'getitem', None]
- E assert 'string' in ['ix', 'loc', 'getitem', None]
- /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
- ___________________________________ test_series_resample[count-2-30T-right-right] ____________________________________
- method = 'count', npartitions = 2, freq = '30T', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1e1198>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-2-30T-right-left] ____________________________________
- method = 'count', npartitions = 2, freq = '30T', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f201da0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-2-30T-left-right] ____________________________________
- method = 'count', npartitions = 2, freq = '30T', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f20eda0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-2-30T-left-left] _____________________________________
- method = 'count', npartitions = 2, freq = '30T', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eac0438>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-2-h-right-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'h', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f144b70>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-h-right-left] _____________________________________
- method = 'count', npartitions = 2, freq = 'h', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f22a550>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-h-left-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'h', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e87a5f8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-h-left-left] ______________________________________
- method = 'count', npartitions = 2, freq = 'h', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f18da58>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-2-d-right-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'd', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0fe2b0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-d-right-left] _____________________________________
- method = 'count', npartitions = 2, freq = 'd', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f19e978>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-d-left-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'd', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4492e8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-d-left-left] ______________________________________
- method = 'count', npartitions = 2, freq = 'd', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f12ab38>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-2-w-right-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'w', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e908278>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-w-right-left] _____________________________________
- method = 'count', npartitions = 2, freq = 'w', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f128550>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-w-left-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'w', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f181d30>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-w-left-left] ______________________________________
- method = 'count', npartitions = 2, freq = 'w', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f161c18>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-2-M-right-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'M', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1eeda0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-M-right-left] _____________________________________
- method = 'count', npartitions = 2, freq = 'M', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e82a898>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-M-left-right] _____________________________________
- method = 'count', npartitions = 2, freq = 'M', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f111160>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-2-M-left-left] ______________________________________
- method = 'count', npartitions = 2, freq = 'M', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f19c518>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ___________________________________ test_series_resample[count-5-30T-right-right] ____________________________________
- method = 'count', npartitions = 5, freq = '30T', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eb95c18>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-5-30T-right-left] ____________________________________
- method = 'count', npartitions = 5, freq = '30T', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f138cc0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-5-30T-left-right] ____________________________________
- method = 'count', npartitions = 5, freq = '30T', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f171470>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-5-30T-left-left] _____________________________________
- method = 'count', npartitions = 5, freq = '30T', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f24d860>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-5-h-right-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'h', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f13a940>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-h-right-left] _____________________________________
- method = 'count', npartitions = 5, freq = 'h', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f24e1d0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-h-left-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'h', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eaec978>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-h-left-left] ______________________________________
- method = 'count', npartitions = 5, freq = 'h', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f144400>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-5-d-right-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'd', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62b8068208>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-d-right-left] _____________________________________
- method = 'count', npartitions = 5, freq = 'd', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f442a58>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-d-left-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'd', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e47b8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-d-left-left] ______________________________________
- method = 'count', npartitions = 5, freq = 'd', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16a6d8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-5-w-right-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'w', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e87a2e8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-w-right-left] _____________________________________
- method = 'count', npartitions = 5, freq = 'w', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e8f60>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-w-left-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'w', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e16a0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-w-left-left] ______________________________________
- method = 'count', npartitions = 5, freq = 'w', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c4c36a0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[count-5-M-right-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'M', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3e6eb8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-M-right-left] _____________________________________
- method = 'count', npartitions = 5, freq = 'M', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f23edd8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-M-left-right] _____________________________________
- method = 'count', npartitions = 5, freq = 'M', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1155f8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[count-5-M-left-left] ______________________________________
- method = 'count', npartitions = 5, freq = 'M', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f181320>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[mean-2-30T-right-right] ____________________________________
- method = 'mean', npartitions = 2, freq = '30T', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e838e80>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[mean-2-30T-right-left] _____________________________________
- method = 'mean', npartitions = 2, freq = '30T', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4239e8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[mean-2-30T-left-right] _____________________________________
- method = 'mean', npartitions = 2, freq = '30T', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f14c780>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-30T-left-left] _____________________________________
- method = 'mean', npartitions = 2, freq = '30T', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f135390>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-h-right-right] _____________________________________
- method = 'mean', npartitions = 2, freq = 'h', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f225978>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-h-right-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'h', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f138160>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-h-left-right] ______________________________________
- method = 'mean', npartitions = 2, freq = 'h', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f21da20>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-2-h-left-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'h', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3eb208>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-d-right-right] _____________________________________
- method = 'mean', npartitions = 2, freq = 'd', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f21ed68>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-d-right-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'd', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16d3c8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-d-left-right] ______________________________________
- method = 'mean', npartitions = 2, freq = 'd', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f24e8d0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-2-d-left-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'd', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f42b2b0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-w-right-right] _____________________________________
- method = 'mean', npartitions = 2, freq = 'w', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0f8e80>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-w-right-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'w', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1249b0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-w-left-right] ______________________________________
- method = 'mean', npartitions = 2, freq = 'w', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e9d8668>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-2-w-left-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'w', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62d005da90>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-M-right-right] _____________________________________
- method = 'mean', npartitions = 2, freq = 'M', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f114518>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-M-right-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'M', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3e90f0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-2-M-left-right] ______________________________________
- method = 'mean', npartitions = 2, freq = 'M', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f10c780>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-2-M-left-left] ______________________________________
- method = 'mean', npartitions = 2, freq = 'M', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3e6710>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[mean-5-30T-right-right] ____________________________________
- method = 'mean', npartitions = 5, freq = '30T', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eb20ac8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[mean-5-30T-right-left] _____________________________________
- method = 'mean', npartitions = 5, freq = '30T', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f19e0b8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[mean-5-30T-left-right] _____________________________________
- method = 'mean', npartitions = 5, freq = '30T', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f11a860>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-30T-left-left] _____________________________________
- method = 'mean', npartitions = 5, freq = '30T', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f17a278>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-h-right-right] _____________________________________
- method = 'mean', npartitions = 5, freq = 'h', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629ea1f390>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-h-right-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'h', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f15e128>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-h-left-right] ______________________________________
- method = 'mean', npartitions = 5, freq = 'h', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f14abe0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-5-h-left-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'h', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4322b0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-d-right-right] _____________________________________
- method = 'mean', npartitions = 5, freq = 'd', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16a390>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-d-right-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'd', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e838400>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-d-left-right] ______________________________________
- method = 'mean', npartitions = 5, freq = 'd', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16e080>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-5-d-left-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'd', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4ac0f0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-w-right-right] _____________________________________
- method = 'mean', npartitions = 5, freq = 'w', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16db70>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-w-right-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'w', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1e14e0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-w-left-right] ______________________________________
- method = 'mean', npartitions = 5, freq = 'w', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f20dbe0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-5-w-left-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'w', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e8f98>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-M-right-right] _____________________________________
- method = 'mean', npartitions = 5, freq = 'M', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629ebbd160>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-M-right-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'M', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1fa5c0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[mean-5-M-left-right] ______________________________________
- method = 'mean', npartitions = 5, freq = 'M', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c4da0f0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[mean-5-M-left-left] ______________________________________
- method = 'mean', npartitions = 5, freq = 'M', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eaefba8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[ohlc-2-30T-right-right] ____________________________________
- method = 'ohlc', npartitions = 2, freq = '30T', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f154b70>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[ohlc-2-30T-right-left] _____________________________________
- method = 'ohlc', npartitions = 2, freq = '30T', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f2445c0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[ohlc-2-30T-left-right] _____________________________________
- method = 'ohlc', npartitions = 2, freq = '30T', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f22ed68>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-30T-left-left] _____________________________________
- method = 'ohlc', npartitions = 2, freq = '30T', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629db88c18>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-h-right-right] _____________________________________
- method = 'ohlc', npartitions = 2, freq = 'h', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f17e3c8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-h-right-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'h', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eb20c18>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-h-left-right] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'h', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f25ab70>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-2-h-left-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'h', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f215ac8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-d-right-right] _____________________________________
- method = 'ohlc', npartitions = 2, freq = 'd', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f11a358>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-d-right-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'd', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f442a20>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-d-left-right] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'd', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629ebd4780>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-2-d-left-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'd', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f181240>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-w-right-right] _____________________________________
- method = 'ohlc', npartitions = 2, freq = 'w', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f49e940>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-w-right-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'w', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f14ab38>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-w-left-right] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'w', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f141cc0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-2-w-left-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'w', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f218710>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-M-right-right] _____________________________________
- method = 'ohlc', npartitions = 2, freq = 'M', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f13c630>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-M-right-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'M', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1453c8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-2-M-left-right] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'M', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0fe5f8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-2-M-left-left] ______________________________________
- method = 'ohlc', npartitions = 2, freq = 'M', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-4d6886725b1924dff2f546c460013c6e, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-02-07 13:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f10a320>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[ohlc-5-30T-right-right] ____________________________________
- method = 'ohlc', npartitions = 5, freq = '30T', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e6dc160>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[ohlc-5-30T-right-left] _____________________________________
- method = 'ohlc', npartitions = 5, freq = '30T', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1147b8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ____________________________________ test_series_resample[ohlc-5-30T-left-right] _____________________________________
- method = 'ohlc', npartitions = 5, freq = '30T', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1fa9b0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-30T-left-left] _____________________________________
- method = 'ohlc', npartitions = 5, freq = '30T', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62b809da90>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-h-right-right] _____________________________________
- method = 'ohlc', npartitions = 5, freq = 'h', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c4da438>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-h-right-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'h', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f22eb70>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-h-left-right] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'h', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f124d30>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-5-h-left-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'h', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1157b8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-d-right-right] _____________________________________
- method = 'ohlc', npartitions = 5, freq = 'd', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f432fd0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-d-right-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'd', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62d00afeb8>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-d-left-right] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'd', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f161048>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-5-d-left-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'd', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e5a7048>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-w-right-right] _____________________________________
- method = 'ohlc', npartitions = 5, freq = 'w', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f208c18>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-w-right-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'w', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f15efd0>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-w-left-right] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'w', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e82a080>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-5-w-left-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'w', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f18a828>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-M-right-right] _____________________________________
- method = 'ohlc', npartitions = 5, freq = 'M', closed = 'right', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f386d68>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-M-right-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'M', closed = 'right', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c19c320>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- _____________________________________ test_series_resample[ohlc-5-M-left-right] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'M', closed = 'left', label = 'right'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f194860>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ______________________________________ test_series_resample[ohlc-5-M-left-left] ______________________________________
- method = 'ohlc', npartitions = 5, freq = 'M', closed = 'left', label = 'left'
- @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
- list(product(['count', 'mean', 'ohlc'],
- [2, 5],
- ['30T', 'h', 'd', 'w', 'M'],
- ['right', 'left'],
- ['right', 'left'])))
- def test_series_resample(method, npartitions, freq, closed, label):
- index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
- index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
- df = pd.Series(range(len(index)), index=index)
- ds = dd.from_pandas(df, npartitions=npartitions)
- # Series output
- > result = ds.resample(freq, how=method, closed=closed, label=label)
- dask/dataframe/tseries/tests/test_resample.py:23:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- dask/dataframe/core.py:982: in resample
- return _resample(self, rule, how=how, closed=closed, label=label)
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- obj = dd.Series<from_pandas-c8339aa899745d60907f2636d0b85aa7, divisions=(Timestamp('2000-01-01 00:00:00'), Timestamp('2000-0...1-31 02:00:00'), Timestamp('2000-04-15 02:00:00'), Timestamp('2000-04-30 03:00:00'), Timestamp('2000-05-15 00:00:00'))>
- rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
- resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f26ea58>
- def _resample(obj, rule, how, **kwargs):
- resampler = Resampler(obj, rule, **kwargs)
- if how is not None:
- raise FutureWarning(("how in .resample() is deprecated "
- "the new syntax is .resample(...)"
- > ".{0}()").format(how))
- E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
- dask/dataframe/tseries/resample.py:28: FutureWarning
- ====================== 136 failed, 634 passed, 24 skipped, 5 xfailed, 1 error in 44.21 seconds =======================
- ==> ERROR: A failure occurred in check().
- Aborting...
- :: failed to build python-dask package(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement