Advertisement
Guest User

dask build error

a guest
Apr 1st, 2016
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 330.97 KB | None | 0 0
  1. ==> Starting check()...
  2. ================================================ test session starts =================================================
  3. platform linux -- Python 3.5.1, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
  4. rootdir: /tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0, inifile:
  5. collected 795 items / 1 errors / 4 skipped
  6.  
  7. dask/array/tests/test_array_core.py ...................................................................................................................s.............
  8. dask/array/tests/test_chunk.py .....
  9. dask/array/tests/test_creation.py ....xx
  10. dask/array/tests/test_ghost.py ................x..
  11. dask/array/tests/test_optimization.py ......
  12. dask/array/tests/test_percentiles.py ..
  13. dask/array/tests/test_random.py ..............
  14. dask/array/tests/test_rechunk.py .................
  15. dask/array/tests/test_reductions.py ............
  16. dask/array/tests/test_slicing.py ......................
  17. dask/array/tests/test_wrap.py .......
  18. dask/bag/tests/test_bag.py ..................................s.......s.............................
  19. dask/dataframe/tests/test_arithmetics_reduction.py FF..F......
  20. dask/dataframe/tests/test_categorical.py ....
  21. dask/dataframe/tests/test_dataframe.py ..............F..........................F........FF......F............F......................
  22. dask/dataframe/tests/test_demo.py ..
  23. dask/dataframe/tests/test_groupby.py ...........
  24. dask/dataframe/tests/test_io.py ................................sssss.x..........s.......s....
  25. dask/dataframe/tests/test_multi.py FF.F.FFFF
  26. dask/dataframe/tests/test_optimize_dataframe.py ..
  27. dask/dataframe/tests/test_rolling.py ....
  28. dask/dataframe/tests/test_shuffle.py .....
  29. dask/dataframe/tests/test_utils_dataframe.py .
  30. dask/dataframe/tseries/tests/test_resample.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.
  31. dask/diagnostics/tests/test_profiler.py .....ssssssss
  32. dask/diagnostics/tests/test_progress.py ......s..
  33. dask/store/tests/test_store.py ..
  34. dask/tests/test_async.py ..............
  35. dask/tests/test_base.py ....................s
  36. dask/tests/test_context.py ..
  37. dask/tests/test_core.py ....................
  38. dask/tests/test_imperative.py .............x.........
  39. dask/tests/test_multiprocessing.py .......
  40. dask/tests/test_optimize.py ...................
  41. dask/tests/test_order.py .......
  42. dask/tests/test_rewrite.py ........
  43. dask/tests/test_threaded.py .....
  44. dask/tests/test_utils.py ........
  45.  
  46. ======================================================= ERRORS =======================================================
  47. __________________________________ ERROR collecting dask/array/tests/test_linalg.py __________________________________
  48. dask/array/tests/test_linalg.py:7: in <module>
  49. import scipy.linalg
  50. E ImportError: No module named 'scipy'
  51. ====================================================== FAILURES ======================================================
  52. __________________________________________________ test_arithmetics __________________________________________________
  53.  
  54. def test_arithmetics():
  55. dsk = {('x', 0): pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]},
  56. index=[0, 1, 3]),
  57. ('x', 1): pd.DataFrame({'a': [4, 5, 6], 'b': [3, 2, 1]},
  58. index=[5, 6, 8]),
  59. ('x', 2): pd.DataFrame({'a': [7, 8, 9], 'b': [0, 0, 0]},
  60. index=[9, 9, 9])}
  61. ddf1 = dd.DataFrame(dsk, 'x', ['a', 'b'], [0, 4, 9, 9])
  62. pdf1 = ddf1.compute()
  63.  
  64. pdf2 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8],
  65. 'b': [5, 6, 7, 8, 1, 2, 3, 4]})
  66. pdf3 = pd.DataFrame({'a': [5, 6, 7, 8, 4, 3, 2, 1],
  67. 'b': [2, 4, 5, 3, 4, 2, 1, 0]})
  68. ddf2 = dd.from_pandas(pdf2, 3)
  69. ddf3 = dd.from_pandas(pdf3, 2)
  70.  
  71. dsk4 = {('y', 0): pd.DataFrame({'a': [3, 2, 1], 'b': [7, 8, 9]},
  72. index=[0, 1, 3]),
  73. ('y', 1): pd.DataFrame({'a': [5, 2, 8], 'b': [4, 2, 3]},
  74. index=[5, 6, 8]),
  75. ('y', 2): pd.DataFrame({'a': [1, 4, 10], 'b': [1, 0, 5]},
  76. index=[9, 9, 9])}
  77. ddf4 = dd.DataFrame(dsk4, 'y', ['a', 'b'], [0, 4, 9, 9])
  78. pdf4 =ddf4.compute()
  79.  
  80. # Arithmetics
  81. cases = [(ddf1, ddf1, pdf1, pdf1),
  82. (ddf1, ddf1.repartition([0, 1, 3, 6, 9]), pdf1, pdf1),
  83. (ddf2, ddf3, pdf2, pdf3),
  84. (ddf2.repartition([0, 3, 6, 7]), ddf3.repartition([0, 7]),
  85. pdf2, pdf3),
  86. (ddf2.repartition([0, 7]), ddf3.repartition([0, 2, 4, 5, 7]),
  87. pdf2, pdf3),
  88. (ddf1, ddf4, pdf1, pdf4),
  89. (ddf1, ddf4.repartition([0, 9]), pdf1, pdf4),
  90. (ddf1.repartition([0, 3, 9]), ddf4.repartition([0, 5, 9]),
  91. pdf1, pdf4),
  92. # dask + pandas
  93. (ddf1, pdf4, pdf1, pdf4), (ddf2, pdf3, pdf2, pdf3)]
  94.  
  95. for (l, r, el, er) in cases:
  96. > check_series_arithmetics(l.a, r.b, el.a, er.b)
  97.  
  98. dask/dataframe/tests/test_arithmetics_reduction.py:54:
  99. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  100. dask/dataframe/tests/test_arithmetics_reduction.py:216: in check_series_arithmetics
  101. assert eq(r, er)
  102. dask/dataframe/utils.py:164: in eq
  103. a = _check_dask(a, check_names=check_names)
  104. dask/dataframe/utils.py:109: in _check_dask
  105. result = dsk.compute(get=get_sync)
  106. dask/base.py:37: in compute
  107. return compute(self, **kwargs)[0]
  108. dask/base.py:110: in compute
  109. results = get(dsk, keys, **kwargs)
  110. dask/async.py:516: in get_sync
  111. raise_on_exception=True, **kwargs)
  112. dask/async.py:462: in get_async
  113. fire_task()
  114. dask/async.py:458: in fire_task
  115. get_id, raise_on_exception])
  116. dask/async.py:508: in apply_sync
  117. return func(*args, **kwds)
  118. dask/async.py:264: in execute_task
  119. result = _execute_task(task, data)
  120. dask/async.py:246: in _execute_task
  121. return func(*args2)
  122. dask/dataframe/core.py:1691: in _loc
  123. result.index.inferred_type)
  124. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  125.  
  126. self = Int64Index([1, 3], dtype='int64'), label = 3, side = 'left', kind = 'integer'
  127.  
  128. def get_slice_bound(self, label, side, kind):
  129. """
  130. Calculate slice bound that corresponds to given label.
  131.  
  132. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  133. of given label.
  134.  
  135. Parameters
  136. ----------
  137. label : object
  138. side : {'left', 'right'}
  139. kind : {'ix', 'loc', 'getitem'}
  140.  
  141. """
  142. > assert kind in ['ix', 'loc', 'getitem', None]
  143. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  144.  
  145. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  146. __________________________________________ test_arithmetics_different_index __________________________________________
  147.  
  148. def test_arithmetics_different_index():
  149. # index are different, but overwraps
  150. pdf1 = pd.DataFrame({'a': [1, 2, 3, 4, 5], 'b': [3, 5, 2, 5, 7]},
  151. index=[1, 2, 3, 4, 5])
  152. ddf1 = dd.from_pandas(pdf1, 2)
  153. pdf2 = pd.DataFrame({'a': [3, 2, 6, 7, 8], 'b': [9, 4, 2, 6, 2]},
  154. index=[3, 4, 5, 6, 7])
  155. ddf2 = dd.from_pandas(pdf2, 2)
  156.  
  157. # index are not overwrapped
  158. pdf3 = pd.DataFrame({'a': [1, 2, 3, 4, 5], 'b': [3, 5, 2, 5, 7]},
  159. index=[1, 2, 3, 4, 5])
  160. ddf3 = dd.from_pandas(pdf3, 2)
  161. pdf4 = pd.DataFrame({'a': [3, 2, 6, 7, 8], 'b': [9, 4, 2, 6, 2]},
  162. index=[10, 11, 12, 13, 14])
  163. ddf4 = dd.from_pandas(pdf4, 2)
  164.  
  165. # index is included in another
  166. pdf5 = pd.DataFrame({'a': [1, 2, 3, 4, 5], 'b': [3, 5, 2, 5, 7]},
  167. index=[1, 3, 5, 7, 9])
  168. ddf5 = dd.from_pandas(pdf5, 2)
  169. pdf6 = pd.DataFrame({'a': [3, 2, 6, 7, 8], 'b': [9, 4, 2, 6, 2]},
  170. index=[2, 3, 4, 5, 6])
  171. ddf6 = dd.from_pandas(pdf6, 2)
  172.  
  173. cases = [(ddf1, ddf2, pdf1, pdf2),
  174. (ddf2, ddf1, pdf2, pdf1),
  175. (ddf1.repartition([1, 3, 5]), ddf2.repartition([3, 4, 7]),
  176. pdf1, pdf2),
  177. (ddf2.repartition([3, 4, 5, 7]), ddf1.repartition([1, 2, 4, 5]),
  178. pdf2, pdf1),
  179. (ddf3, ddf4, pdf3, pdf4),
  180. (ddf4, ddf3, pdf4, pdf3),
  181. (ddf3.repartition([1, 2, 3, 4, 5]),
  182. ddf4.repartition([10, 11, 12, 13, 14]), pdf3, pdf4),
  183. (ddf4.repartition([10, 14]), ddf3.repartition([1, 3, 4, 5]),
  184. pdf4, pdf3),
  185. (ddf5, ddf6, pdf5, pdf6),
  186. (ddf6, ddf5, pdf6, pdf5),
  187. (ddf5.repartition([1, 7, 8, 9]), ddf6.repartition([2, 3, 4, 6]),
  188. pdf5, pdf6),
  189. (ddf6.repartition([2, 6]), ddf5.repartition([1, 3, 7, 9]),
  190. pdf6, pdf5),
  191. # dask + pandas
  192. (ddf1, pdf2, pdf1, pdf2), (ddf2, pdf1, pdf2, pdf1),
  193. (ddf3, pdf4, pdf3, pdf4), (ddf4, pdf3, pdf4, pdf3),
  194. (ddf5, pdf6, pdf5, pdf6), (ddf6, pdf5, pdf6, pdf5)]
  195.  
  196. for (l, r, el, er) in cases:
  197. check_series_arithmetics(l.a, r.b, el.a, er.b,
  198. > allow_comparison_ops=False)
  199.  
  200. dask/dataframe/tests/test_arithmetics_reduction.py:162:
  201. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  202. dask/dataframe/tests/test_arithmetics_reduction.py:218: in check_series_arithmetics
  203. assert eq(l + r, el + er)
  204. dask/dataframe/utils.py:164: in eq
  205. a = _check_dask(a, check_names=check_names)
  206. dask/dataframe/utils.py:109: in _check_dask
  207. result = dsk.compute(get=get_sync)
  208. dask/base.py:37: in compute
  209. return compute(self, **kwargs)[0]
  210. dask/base.py:110: in compute
  211. results = get(dsk, keys, **kwargs)
  212. dask/async.py:516: in get_sync
  213. raise_on_exception=True, **kwargs)
  214. dask/async.py:487: in get_async
  215. fire_task()
  216. dask/async.py:458: in fire_task
  217. get_id, raise_on_exception])
  218. dask/async.py:508: in apply_sync
  219. return func(*args, **kwds)
  220. dask/async.py:264: in execute_task
  221. result = _execute_task(task, data)
  222. dask/async.py:246: in _execute_task
  223. return func(*args2)
  224. dask/dataframe/core.py:1691: in _loc
  225. result.index.inferred_type)
  226. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  227.  
  228. self = Int64Index([4, 5], dtype='int64'), label = 5, side = 'left', kind = 'integer'
  229.  
  230. def get_slice_bound(self, label, side, kind):
  231. """
  232. Calculate slice bound that corresponds to given label.
  233.  
  234. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  235. of given label.
  236.  
  237. Parameters
  238. ----------
  239. label : object
  240. side : {'left', 'right'}
  241. kind : {'ix', 'loc', 'getitem'}
  242.  
  243. """
  244. > assert kind in ['ix', 'loc', 'getitem', None]
  245. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  246.  
  247. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  248. ________________________________________ test_frame_series_arithmetic_methods ________________________________________
  249.  
  250. def test_frame_series_arithmetic_methods():
  251. pdf1 = pd.DataFrame({'A': np.arange(10),
  252. 'B': [np.nan, 1, 2, 3, 4] * 2,
  253. 'C': [np.nan] * 10,
  254. 'D': np.arange(10)},
  255. index=list('abcdefghij'), columns=list('ABCD'))
  256. pdf2 = pd.DataFrame(np.random.randn(10, 4),
  257. index=list('abcdefghjk'), columns=list('ABCX'))
  258. ps1 = pdf1.A
  259. ps2 = pdf2.A
  260.  
  261. ddf1 = dd.from_pandas(pdf1, 2)
  262. ddf2 = dd.from_pandas(pdf2, 2)
  263. ds1 = ddf1.A
  264. ds2 = ddf2.A
  265.  
  266. s = dd.core.Scalar({('s', 0): 4}, 's')
  267.  
  268. for l, r, el, er in [(ddf1, ddf2, pdf1, pdf2), (ds1, ds2, ps1, ps2),
  269. (ddf1.repartition(['a', 'f', 'j']), ddf2, pdf1, pdf2),
  270. (ds1.repartition(['a', 'b', 'f', 'j']), ds2, ps1, ps2),
  271. (ddf1, ddf2.repartition(['a', 'k']), pdf1, pdf2),
  272. (ds1, ds2.repartition(['a', 'b', 'd', 'h', 'k']), ps1, ps2),
  273. (ddf1, 3, pdf1, 3), (ds1, 3, ps1, 3),
  274. (ddf1, s, pdf1, 4), (ds1, s, ps1, 4)]:
  275. # l, r may be repartitioned, test whether repartition keeps original data
  276. assert eq(l, el)
  277. assert eq(r, er)
  278.  
  279. > assert eq(l.add(r, fill_value=0), el.add(er, fill_value=0))
  280.  
  281. dask/dataframe/tests/test_arithmetics_reduction.py:500:
  282. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  283. dask/dataframe/utils.py:164: in eq
  284. a = _check_dask(a, check_names=check_names)
  285. dask/dataframe/utils.py:109: in _check_dask
  286. result = dsk.compute(get=get_sync)
  287. dask/base.py:37: in compute
  288. return compute(self, **kwargs)[0]
  289. dask/base.py:110: in compute
  290. results = get(dsk, keys, **kwargs)
  291. dask/async.py:516: in get_sync
  292. raise_on_exception=True, **kwargs)
  293. dask/async.py:462: in get_async
  294. fire_task()
  295. dask/async.py:458: in fire_task
  296. get_id, raise_on_exception])
  297. dask/async.py:508: in apply_sync
  298. return func(*args, **kwds)
  299. dask/async.py:264: in execute_task
  300. result = _execute_task(task, data)
  301. dask/async.py:246: in _execute_task
  302. return func(*args2)
  303. dask/dataframe/core.py:1691: in _loc
  304. result.index.inferred_type)
  305. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  306.  
  307. self = Index(['f', 'g', 'h', 'j'], dtype='object'), label = 'j', side = 'left', kind = 'string'
  308.  
  309. def get_slice_bound(self, label, side, kind):
  310. """
  311. Calculate slice bound that corresponds to given label.
  312.  
  313. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  314. of given label.
  315.  
  316. Parameters
  317. ----------
  318. label : object
  319. side : {'left', 'right'}
  320. kind : {'ix', 'loc', 'getitem'}
  321.  
  322. """
  323. > assert kind in ['ix', 'loc', 'getitem', None]
  324. E assert 'string' in ['ix', 'loc', 'getitem', None]
  325.  
  326. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  327. __________________________________________________ test_where_mask ___________________________________________________
  328.  
  329. def test_where_mask():
  330. pdf1 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
  331. 'b': [3, 5, 2, 5, 7, 2, 4, 2, 4]})
  332. ddf1 = dd.from_pandas(pdf1, 2)
  333. pdf2 = pd.DataFrame({'a': [True, False, True] * 3,
  334. 'b': [False, False, True] * 3})
  335. ddf2 = dd.from_pandas(pdf2, 2)
  336.  
  337. # different index
  338. pdf3 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
  339. 'b': [3, 5, 2, 5, 7, 2, 4, 2, 4]},
  340. index=[0, 1, 2, 3, 4, 5, 6, 7, 8])
  341. ddf3 = dd.from_pandas(pdf3, 2)
  342. pdf4 = pd.DataFrame({'a': [True, False, True] * 3,
  343. 'b': [False, False, True] * 3},
  344. index=[5, 6, 7, 8, 9, 10, 11, 12, 13])
  345. ddf4 = dd.from_pandas(pdf4, 2)
  346.  
  347. # different columns
  348. pdf5 = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
  349. 'b': [9, 4, 2, 6, 2, 3, 1, 6, 2],
  350. 'c': [5, 6, 7, 8, 9, 10, 11, 12, 13]},
  351. index=[0, 1, 2, 3, 4, 5, 6, 7, 8])
  352. ddf5 = dd.from_pandas(pdf5, 2)
  353. pdf6 = pd.DataFrame({'a': [True, False, True] * 3,
  354. 'b': [False, False, True] * 3,
  355. 'd': [False] * 9,
  356. 'e': [True] * 9},
  357. index=[5, 6, 7, 8, 9, 10, 11, 12, 13])
  358. ddf6 = dd.from_pandas(pdf6, 2)
  359.  
  360. cases = [(ddf1, ddf2, pdf1, pdf2),
  361. (ddf1.repartition([0, 3, 6, 8]), ddf2, pdf1, pdf2),
  362. (ddf1, ddf4, pdf3, pdf4),
  363. (ddf3.repartition([0, 4, 6, 8]), ddf4.repartition([5, 9, 10, 13]),
  364. pdf3, pdf4),
  365. (ddf5, ddf6, pdf5, pdf6),
  366. (ddf5.repartition([0, 4, 7, 8]), ddf6, pdf5, pdf6),
  367.  
  368. # use pd.DataFrame as cond
  369. (ddf1, pdf2, pdf1, pdf2),
  370. (ddf1, pdf4, pdf3, pdf4),
  371. (ddf5, pdf6, pdf5, pdf6)]
  372.  
  373. for ddf, ddcond, pdf, pdcond in cases:
  374. assert isinstance(ddf, dd.DataFrame)
  375. assert isinstance(ddcond, (dd.DataFrame, pd.DataFrame))
  376. assert isinstance(pdf, pd.DataFrame)
  377. assert isinstance(pdcond, pd.DataFrame)
  378.  
  379. > assert eq(ddf.where(ddcond), pdf.where(pdcond))
  380.  
  381. dask/dataframe/tests/test_dataframe.py:282:
  382. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  383. dask/dataframe/utils.py:164: in eq
  384. a = _check_dask(a, check_names=check_names)
  385. dask/dataframe/utils.py:109: in _check_dask
  386. result = dsk.compute(get=get_sync)
  387. dask/base.py:37: in compute
  388. return compute(self, **kwargs)[0]
  389. dask/base.py:110: in compute
  390. results = get(dsk, keys, **kwargs)
  391. dask/async.py:516: in get_sync
  392. raise_on_exception=True, **kwargs)
  393. dask/async.py:462: in get_async
  394. fire_task()
  395. dask/async.py:458: in fire_task
  396. get_id, raise_on_exception])
  397. dask/async.py:508: in apply_sync
  398. return func(*args, **kwds)
  399. dask/async.py:264: in execute_task
  400. result = _execute_task(task, data)
  401. dask/async.py:246: in _execute_task
  402. return func(*args2)
  403. dask/dataframe/core.py:1691: in _loc
  404. result.index.inferred_type)
  405. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  406.  
  407. self = RangeIndex(start=5, stop=7, step=1), label = 6, side = 'left', kind = 'integer'
  408.  
  409. def get_slice_bound(self, label, side, kind):
  410. """
  411. Calculate slice bound that corresponds to given label.
  412.  
  413. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  414. of given label.
  415.  
  416. Parameters
  417. ----------
  418. label : object
  419. side : {'left', 'right'}
  420. kind : {'ix', 'loc', 'getitem'}
  421.  
  422. """
  423. > assert kind in ['ix', 'loc', 'getitem', None]
  424. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  425.  
  426. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  427. ____________________________________________________ test_getitem ____________________________________________________
  428.  
  429. def test_getitem():
  430. df = pd.DataFrame({'A': [1, 2, 3, 4, 5, 6, 7, 8, 9],
  431. 'B': [9, 8, 7, 6, 5, 4, 3, 2, 1],
  432. 'C': [True, False, True] * 3},
  433. columns=list('ABC'))
  434. ddf = dd.from_pandas(df, 2)
  435. assert eq(ddf['A'], df['A'])
  436. tm.assert_series_equal(ddf['A']._pd, ddf._pd['A']) # check cache consistency
  437.  
  438. assert eq(ddf[['A', 'B']], df[['A', 'B']])
  439. tm.assert_frame_equal(ddf[['A', 'B']]._pd, ddf._pd[['A', 'B']])
  440.  
  441. assert eq(ddf[ddf.C], df[df.C])
  442. tm.assert_series_equal(ddf.C._pd, ddf._pd.C)
  443.  
  444. > assert eq(ddf[ddf.C.repartition([0, 2, 5, 8])], df[df.C])
  445.  
  446. dask/dataframe/tests/test_dataframe.py:659:
  447. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  448. dask/dataframe/utils.py:164: in eq
  449. a = _check_dask(a, check_names=check_names)
  450. dask/dataframe/utils.py:109: in _check_dask
  451. result = dsk.compute(get=get_sync)
  452. dask/base.py:37: in compute
  453. return compute(self, **kwargs)[0]
  454. dask/base.py:110: in compute
  455. results = get(dsk, keys, **kwargs)
  456. dask/async.py:516: in get_sync
  457. raise_on_exception=True, **kwargs)
  458. dask/async.py:487: in get_async
  459. fire_task()
  460. dask/async.py:458: in fire_task
  461. get_id, raise_on_exception])
  462. dask/async.py:508: in apply_sync
  463. return func(*args, **kwds)
  464. dask/async.py:264: in execute_task
  465. result = _execute_task(task, data)
  466. dask/async.py:246: in _execute_task
  467. return func(*args2)
  468. dask/dataframe/core.py:1691: in _loc
  469. result.index.inferred_type)
  470. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  471.  
  472. self = RangeIndex(start=2, stop=5, step=1), label = 5, side = 'left', kind = 'integer'
  473.  
  474. def get_slice_bound(self, label, side, kind):
  475. """
  476. Calculate slice bound that corresponds to given label.
  477.  
  478. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  479. of given label.
  480.  
  481. Parameters
  482. ----------
  483. label : object
  484. side : {'left', 'right'}
  485. kind : {'ix', 'loc', 'getitem'}
  486.  
  487. """
  488. > assert kind in ['ix', 'loc', 'getitem', None]
  489. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  490.  
  491. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  492. _________________________________________ test_concat4_interleave_partitions _________________________________________
  493.  
  494. def test_concat4_interleave_partitions():
  495. pdf1 = pd.DataFrame(np.random.randn(10, 5),
  496. columns=list('ABCDE'), index=list('abcdefghij'))
  497. pdf2 = pd.DataFrame(np.random.randn(13, 5),
  498. columns=list('ABCDE'), index=list('fghijklmnopqr'))
  499. pdf3 = pd.DataFrame(np.random.randn(13, 6),
  500. columns=list('CDEXYZ'), index=list('fghijklmnopqr'))
  501.  
  502. ddf1 = dd.from_pandas(pdf1, 2)
  503. ddf2 = dd.from_pandas(pdf2, 3)
  504. ddf3 = dd.from_pandas(pdf3, 2)
  505.  
  506. msg = ('All inputs have known divisions which cannnot be '
  507. 'concatenated in order. Specify '
  508. 'interleave_partitions=True to ignore order')
  509.  
  510. cases = [[ddf1, ddf1], [ddf1, ddf2], [ddf1, ddf3], [ddf2, ddf1],
  511. [ddf2, ddf3], [ddf3, ddf1], [ddf3, ddf2]]
  512. for case in cases:
  513. pdcase = [c.compute() for c in case]
  514.  
  515. with tm.assertRaisesRegexp(ValueError, msg):
  516. dd.concat(case)
  517.  
  518. > assert eq(dd.concat(case, interleave_partitions=True),
  519. pd.concat(pdcase))
  520.  
  521. dask/dataframe/tests/test_dataframe.py:826:
  522. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  523. dask/dataframe/utils.py:164: in eq
  524. a = _check_dask(a, check_names=check_names)
  525. dask/dataframe/utils.py:109: in _check_dask
  526. result = dsk.compute(get=get_sync)
  527. dask/base.py:37: in compute
  528. return compute(self, **kwargs)[0]
  529. dask/base.py:110: in compute
  530. results = get(dsk, keys, **kwargs)
  531. dask/async.py:516: in get_sync
  532. raise_on_exception=True, **kwargs)
  533. dask/async.py:487: in get_async
  534. fire_task()
  535. dask/async.py:458: in fire_task
  536. get_id, raise_on_exception])
  537. dask/async.py:508: in apply_sync
  538. return func(*args, **kwds)
  539. dask/async.py:264: in execute_task
  540. result = _execute_task(task, data)
  541. dask/async.py:246: in _execute_task
  542. return func(*args2)
  543. dask/dataframe/core.py:1691: in _loc
  544. result.index.inferred_type)
  545. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  546.  
  547. self = Index(['a', 'b', 'c', 'd', 'e'], dtype='object'), label = 'f', side = 'left', kind = 'string'
  548.  
  549. def get_slice_bound(self, label, side, kind):
  550. """
  551. Calculate slice bound that corresponds to given label.
  552.  
  553. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  554. of given label.
  555.  
  556. Parameters
  557. ----------
  558. label : object
  559. side : {'left', 'right'}
  560. kind : {'ix', 'loc', 'getitem'}
  561.  
  562. """
  563. > assert kind in ['ix', 'loc', 'getitem', None]
  564. E assert 'string' in ['ix', 'loc', 'getitem', None]
  565.  
  566. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  567. ____________________________________________________ test_concat5 ____________________________________________________
  568.  
  569. def test_concat5():
  570. pdf1 = pd.DataFrame(np.random.randn(7, 5),
  571. columns=list('ABCDE'), index=list('abcdefg'))
  572. pdf2 = pd.DataFrame(np.random.randn(7, 6),
  573. columns=list('FGHIJK'), index=list('abcdefg'))
  574. pdf3 = pd.DataFrame(np.random.randn(7, 6),
  575. columns=list('FGHIJK'), index=list('cdefghi'))
  576. pdf4 = pd.DataFrame(np.random.randn(7, 5),
  577. columns=list('FGHAB'), index=list('cdefghi'))
  578. pdf5 = pd.DataFrame(np.random.randn(7, 5),
  579. columns=list('FGHAB'), index=list('fklmnop'))
  580.  
  581. ddf1 = dd.from_pandas(pdf1, 2)
  582. ddf2 = dd.from_pandas(pdf2, 3)
  583. ddf3 = dd.from_pandas(pdf3, 2)
  584. ddf4 = dd.from_pandas(pdf4, 2)
  585. ddf5 = dd.from_pandas(pdf5, 3)
  586.  
  587. cases = [[ddf1, ddf2], [ddf1, ddf3], [ddf1, ddf4], [ddf1, ddf5],
  588. [ddf3, ddf4], [ddf3, ddf5], [ddf5, ddf1, ddf4], [ddf5, ddf3],
  589. [ddf1.A, ddf4.A], [ddf2.F, ddf3.F], [ddf4.A, ddf5.A],
  590. [ddf1.A, ddf4.F], [ddf2.F, ddf3.H], [ddf4.A, ddf5.B],
  591. [ddf1, ddf4.A], [ddf3.F, ddf2], [ddf5, ddf1.A, ddf2]]
  592.  
  593. for case in cases:
  594. pdcase = [c.compute() for c in case]
  595.  
  596. > assert eq(dd.concat(case, interleave_partitions=True),
  597. pd.concat(pdcase))
  598.  
  599. dask/dataframe/tests/test_dataframe.py:863:
  600. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  601. dask/dataframe/utils.py:164: in eq
  602. a = _check_dask(a, check_names=check_names)
  603. dask/dataframe/utils.py:109: in _check_dask
  604. result = dsk.compute(get=get_sync)
  605. dask/base.py:37: in compute
  606. return compute(self, **kwargs)[0]
  607. dask/base.py:110: in compute
  608. results = get(dsk, keys, **kwargs)
  609. dask/async.py:516: in get_sync
  610. raise_on_exception=True, **kwargs)
  611. dask/async.py:462: in get_async
  612. fire_task()
  613. dask/async.py:458: in fire_task
  614. get_id, raise_on_exception])
  615. dask/async.py:508: in apply_sync
  616. return func(*args, **kwds)
  617. dask/async.py:264: in execute_task
  618. result = _execute_task(task, data)
  619. dask/async.py:246: in _execute_task
  620. return func(*args2)
  621. dask/dataframe/core.py:1691: in _loc
  622. result.index.inferred_type)
  623. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  624.  
  625. self = Index(['d', 'e'], dtype='object'), label = 'e', side = 'left', kind = 'string'
  626.  
  627. def get_slice_bound(self, label, side, kind):
  628. """
  629. Calculate slice bound that corresponds to given label.
  630.  
  631. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  632. of given label.
  633.  
  634. Parameters
  635. ----------
  636. label : object
  637. side : {'left', 'right'}
  638. kind : {'ix', 'loc', 'getitem'}
  639.  
  640. """
  641. > assert kind in ['ix', 'loc', 'getitem', None]
  642. E assert 'string' in ['ix', 'loc', 'getitem', None]
  643.  
  644. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  645. __________________________________________________ test_repartition __________________________________________________
  646.  
  647. def test_repartition():
  648.  
  649. def _check_split_data(orig, d):
  650. """Check data is split properly"""
  651. keys = [k for k in d.dask if k[0].startswith('repartition-split')]
  652. keys = sorted(keys)
  653. sp = pd.concat([d._get(d.dask, k) for k in keys])
  654. assert eq(orig, sp)
  655. assert eq(orig, d)
  656.  
  657. df = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6], 'y': list('abdabd')},
  658. index=[10, 20, 30, 40, 50, 60])
  659. a = dd.from_pandas(df, 2)
  660.  
  661. b = a.repartition(divisions=[10, 20, 50, 60])
  662. assert b.divisions == (10, 20, 50, 60)
  663. > assert eq(a, b)
  664.  
  665. dask/dataframe/tests/test_dataframe.py:1030:
  666. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  667. dask/dataframe/utils.py:165: in eq
  668. b = _check_dask(b, check_names=check_names)
  669. dask/dataframe/utils.py:109: in _check_dask
  670. result = dsk.compute(get=get_sync)
  671. dask/base.py:37: in compute
  672. return compute(self, **kwargs)[0]
  673. dask/base.py:110: in compute
  674. results = get(dsk, keys, **kwargs)
  675. dask/async.py:516: in get_sync
  676. raise_on_exception=True, **kwargs)
  677. dask/async.py:462: in get_async
  678. fire_task()
  679. dask/async.py:458: in fire_task
  680. get_id, raise_on_exception])
  681. dask/async.py:508: in apply_sync
  682. return func(*args, **kwds)
  683. dask/async.py:264: in execute_task
  684. result = _execute_task(task, data)
  685. dask/async.py:246: in _execute_task
  686. return func(*args2)
  687. dask/dataframe/core.py:1691: in _loc
  688. result.index.inferred_type)
  689. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  690.  
  691. self = Int64Index([10, 20], dtype='int64'), label = 20, side = 'left', kind = 'integer'
  692.  
  693. def get_slice_bound(self, label, side, kind):
  694. """
  695. Calculate slice bound that corresponds to given label.
  696.  
  697. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  698. of given label.
  699.  
  700. Parameters
  701. ----------
  702. label : object
  703. side : {'left', 'right'}
  704. kind : {'ix', 'loc', 'getitem'}
  705.  
  706. """
  707. > assert kind in ['ix', 'loc', 'getitem', None]
  708. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  709.  
  710. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  711. _____________________________________________________ test_query _____________________________________________________
  712.  
  713. def test_query():
  714. df = pd.DataFrame({'x': [1, 2, 3, 4], 'y': [5, 6, 7, 8]})
  715. a = dd.from_pandas(df, npartitions=2)
  716. > q = a.query('x**2 > y')
  717.  
  718. dask/dataframe/tests/test_dataframe.py:1244:
  719. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  720. dask/dataframe/core.py:1419: in query
  721. dummy = self._pd.query(expr, **kwargs)
  722. /usr/lib/python3.5/site-packages/pandas/core/frame.py:2140: in query
  723. res = self.eval(expr, **kwargs)
  724. /usr/lib/python3.5/site-packages/pandas/core/frame.py:2209: in eval
  725. return _eval(expr, inplace=inplace, **kwargs)
  726. /usr/lib/python3.5/site-packages/pandas/computation/eval.py:233: in eval
  727. _check_engine(engine)
  728. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  729.  
  730. engine = 'numexpr'
  731.  
  732. def _check_engine(engine):
  733. """Make sure a valid engine is passed.
  734.  
  735. Parameters
  736. ----------
  737. engine : str
  738.  
  739. Raises
  740. ------
  741. KeyError
  742. * If an invalid engine is passed
  743. ImportError
  744. * If numexpr was requested but doesn't exist
  745. """
  746. if engine not in _engines:
  747. raise KeyError('Invalid engine {0!r} passed, valid engines are'
  748. ' {1}'.format(engine, list(_engines.keys())))
  749.  
  750. # TODO: validate this in a more general way (thinking of future engines
  751. # that won't necessarily be import-able)
  752. # Could potentially be done on engine instantiation
  753. if engine == 'numexpr':
  754. if not _NUMEXPR_INSTALLED:
  755. > raise ImportError("'numexpr' is not installed or an "
  756. "unsupported version. Cannot use "
  757. "engine='numexpr' for query/eval "
  758. "if 'numexpr' is not installed")
  759. E ImportError: 'numexpr' is not installed or an unsupported version. Cannot use engine='numexpr' for query/eval if 'numexpr' is not installed
  760.  
  761. /usr/lib/python3.5/site-packages/pandas/computation/eval.py:39: ImportError
  762. _______________________________________________ test_align_partitions ________________________________________________
  763.  
  764. def test_align_partitions():
  765. A = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6], 'y': list('abdabd')},
  766. index=[10, 20, 30, 40, 50, 60])
  767. a = dd.repartition(A, [10, 40, 60])
  768.  
  769. B = pd.DataFrame({'x': [1, 2, 3, 4], 'y': list('abda')},
  770. index=[30, 70, 80, 100])
  771. b = dd.repartition(B, [30, 80, 100])
  772.  
  773. s = dd.core.Scalar({('s', 0): 10}, 's')
  774.  
  775. (aa, bb), divisions, L = align_partitions(a, b)
  776.  
  777. def _check(a, b, aa, bb):
  778. assert isinstance(a, dd.DataFrame)
  779. assert isinstance(b, dd.DataFrame)
  780. assert isinstance(aa, dd.DataFrame)
  781. assert isinstance(bb, dd.DataFrame)
  782. assert eq(a, aa)
  783. assert eq(b, bb)
  784. assert divisions == (10, 30, 40, 60, 80, 100)
  785. assert isinstance(L, list)
  786. assert len(divisions) == 1 + len(L)
  787.  
  788. > _check(a, b, aa, bb)
  789.  
  790. dask/dataframe/tests/test_multi.py:37:
  791. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  792. dask/dataframe/tests/test_multi.py:31: in _check
  793. assert eq(a, aa)
  794. dask/dataframe/utils.py:165: in eq
  795. b = _check_dask(b, check_names=check_names)
  796. dask/dataframe/utils.py:109: in _check_dask
  797. result = dsk.compute(get=get_sync)
  798. dask/base.py:37: in compute
  799. return compute(self, **kwargs)[0]
  800. dask/base.py:110: in compute
  801. results = get(dsk, keys, **kwargs)
  802. dask/async.py:516: in get_sync
  803. raise_on_exception=True, **kwargs)
  804. dask/async.py:462: in get_async
  805. fire_task()
  806. dask/async.py:458: in fire_task
  807. get_id, raise_on_exception])
  808. dask/async.py:508: in apply_sync
  809. return func(*args, **kwds)
  810. dask/async.py:264: in execute_task
  811. result = _execute_task(task, data)
  812. dask/async.py:246: in _execute_task
  813. return func(*args2)
  814. dask/dataframe/core.py:1691: in _loc
  815. result.index.inferred_type)
  816. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  817.  
  818. self = Int64Index([40, 50, 60], dtype='int64'), label = 60, side = 'left', kind = 'integer'
  819.  
  820. def get_slice_bound(self, label, side, kind):
  821. """
  822. Calculate slice bound that corresponds to given label.
  823.  
  824. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  825. of given label.
  826.  
  827. Parameters
  828. ----------
  829. label : object
  830. side : {'left', 'right'}
  831. kind : {'ix', 'loc', 'getitem'}
  832.  
  833. """
  834. > assert kind in ['ix', 'loc', 'getitem', None]
  835. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  836.  
  837. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  838. __________________________________ test_join_indexed_dataframe_to_indexed_dataframe __________________________________
  839.  
  840. def test_join_indexed_dataframe_to_indexed_dataframe():
  841. A = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6]},
  842. index=[1, 2, 3, 4, 6, 7])
  843. a = dd.repartition(A, [1, 4, 7])
  844.  
  845. B = pd.DataFrame({'y': list('abcdef')},
  846. index=[1, 2, 4, 5, 6, 8])
  847. b = dd.repartition(B, [1, 2, 5, 8])
  848.  
  849. c = join_indexed_dataframes(a, b, how='left')
  850. assert c.divisions[0] == a.divisions[0]
  851. assert c.divisions[-1] == max(a.divisions + b.divisions)
  852. > tm.assert_frame_equal(c.compute(), A.join(B))
  853.  
  854. dask/dataframe/tests/test_multi.py:95:
  855. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  856. dask/base.py:37: in compute
  857. return compute(self, **kwargs)[0]
  858. dask/base.py:110: in compute
  859. results = get(dsk, keys, **kwargs)
  860. dask/threaded.py:57: in get
  861. **kwargs)
  862. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  863.  
  864. apply_async = <bound method Pool.apply_async of <multiprocessing.pool.ThreadPool object at 0x7f62d8ed3a90>>
  865. num_workers = 8
  866. dsk = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0): (<function DataFrame.join at 0x7f62d4111c80>, ('repartition-mer...28ac5c289bbc5cdef87ebe4e8', 3), ('repartition-merge-059c7672a9d8eb1091588084fdbca872', 3), None, 'left', '', ...), ...}
  867. result = [[('join-indexed-994753168c44e38c5ec7be48d19709cc', 0), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1), ('join-i...09cc', 2), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 4)]]
  868. cache = None, queue = <queue.Queue object at 0x7f629f32b1d0>, get_id = <function _thread_get_id at 0x7f62d31d49d8>
  869. raise_on_exception = False, rerun_exceptions_locally = False, callbacks = set(), kwargs = {}, start_cbs = ()
  870. posttask_cbs = (), finish_cbs = ()
  871. result_flat = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1), ('join-in...709cc', 2), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 4)}
  872. results = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1), ('join-in...709cc', 2), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3), ('join-indexed-994753168c44e38c5ec7be48d19709cc', 4)}
  873. keyorder = {('join-indexed-994753168c44e38c5ec7be48d19709cc', 0): 24, ('join-indexed-994753168c44e38c5ec7be48d19709cc', 1): 18, ('join-indexed-994753168c44e38c5ec7be48d19709cc', 2): 12, ('join-indexed-994753168c44e38c5ec7be48d19709cc', 3): 0, ...}
  874.  
  875. def get_async(apply_async, num_workers, dsk, result, cache=None,
  876. queue=None, get_id=default_get_id, raise_on_exception=False,
  877. rerun_exceptions_locally=None, callbacks=None, **kwargs):
  878. """ Asynchronous get function
  879.  
  880. This is a general version of various asynchronous schedulers for dask. It
  881. takes a an apply_async function as found on Pool objects to form a more
  882. specific ``get`` method that walks through the dask array with parallel
  883. workers, avoiding repeat computation and minimizing memory use.
  884.  
  885. This function evaluates the entire graph, regardless of the given output
  886. keys. You may want to cull your graph ahead of time with
  887. ``dask.optimize.cull``.
  888.  
  889. Parameters
  890. ----------
  891.  
  892. apply_async : function
  893. Asynchronous apply function as found on Pool or ThreadPool
  894. num_workers : int
  895. The number of active tasks we should have at any one time
  896. dsk: dict
  897. A dask dictionary specifying a workflow
  898. result : key or list of keys
  899. Keys corresponding to desired data
  900. cache : dict-like, optional
  901. Temporary storage of results
  902. get_id : callable, optional
  903. Function to return the worker id, takes no arguments. Examples are
  904. `threading.current_thread` and `multiprocessing.current_process`.
  905. rerun_exceptions_locally : bool, optional
  906. Whether to rerun failing tasks in local process to enable debugging
  907. (False by default)
  908. callbacks : tuple or list of tuples, optional
  909. Callbacks are passed in as tuples of length 4. Multiple sets of
  910. callbacks may be passed in as a list of tuples. For more information,
  911. see the dask.diagnostics documentation.
  912.  
  913. See Also
  914. --------
  915.  
  916. threaded.get
  917. """
  918. assert queue
  919.  
  920. if callbacks is None:
  921. callbacks = _globals['callbacks']
  922. start_cbs, pretask_cbs, posttask_cbs, finish_cbs = unpack_callbacks(callbacks)
  923.  
  924. if isinstance(result, list):
  925. result_flat = set(flatten(result))
  926. else:
  927. result_flat = set([result])
  928. results = set(result_flat)
  929.  
  930. dsk = dsk.copy()
  931. for f in start_cbs:
  932. f(dsk)
  933.  
  934. dsk = cull(dsk, list(results))
  935.  
  936. keyorder = order(dsk)
  937.  
  938. state = start_state_from_dask(dsk, cache=cache, sortkey=keyorder.get)
  939.  
  940. if rerun_exceptions_locally is None:
  941. rerun_exceptions_locally = _globals.get('rerun_exceptions_locally', False)
  942.  
  943. if state['waiting'] and not state['ready']:
  944. raise ValueError("Found no accessible jobs in dask")
  945.  
  946. def fire_task():
  947. """ Fire off a task to the thread pool """
  948. # Choose a good task to compute
  949. key = state['ready'].pop()
  950. state['running'].add(key)
  951. for f in pretask_cbs:
  952. f(key, dsk, state)
  953.  
  954. # Prep data to send
  955. data = dict((dep, state['cache'][dep])
  956. for dep in get_dependencies(dsk, key))
  957. # Submit
  958. apply_async(execute_task, args=[key, dsk[key], data, queue,
  959. get_id, raise_on_exception])
  960.  
  961. # Seed initial tasks into the thread pool
  962. while state['ready'] and len(state['running']) < num_workers:
  963. fire_task()
  964.  
  965. # Main loop, wait on tasks to finish, insert new ones
  966. while state['waiting'] or state['ready'] or state['running']:
  967. try:
  968. key, res, tb, worker_id = queue.get()
  969. except KeyboardInterrupt:
  970. for f in finish_cbs:
  971. f(dsk, state, True)
  972. raise
  973. if isinstance(res, Exception):
  974. for f in finish_cbs:
  975. f(dsk, state, True)
  976. if rerun_exceptions_locally:
  977. data = dict((dep, state['cache'][dep])
  978. for dep in get_dependencies(dsk, key))
  979. task = dsk[key]
  980. _execute_task(task, data) # Re-execute locally
  981. else:
  982. > raise(remote_exception(res, tb))
  983. E dask.async.AssertionError: assert 'integer' in ['ix', 'loc', 'getitem', None]
  984. E
  985. E Traceback
  986. E ---------
  987. E File "/tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0/dask/async.py", line 264, in execute_task
  988. E result = _execute_task(task, data)
  989. E File "/tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0/dask/async.py", line 246, in _execute_task
  990. E return func(*args2)
  991. E File "/tmp/pacaurtmp-to266/python-dask/src/dask-0.8.0/dask/dataframe/core.py", line 1691, in _loc
  992. E result.index.inferred_type)
  993. E File "/usr/lib/python3.5/site-packages/pandas/indexes/base.py", line 2807, in get_slice_bound
  994. E assert kind in ['ix', 'loc', 'getitem', None]
  995.  
  996. dask/async.py:481: AssertionError
  997. ________________________________________________ test_indexed_concat _________________________________________________
  998.  
  999. def test_indexed_concat():
  1000. A = pd.DataFrame({'x': [1, 2, 3, 4, 6, 7], 'y': list('abcdef')},
  1001. index=[1, 2, 3, 4, 6, 7])
  1002. a = dd.repartition(A, [1, 4, 7])
  1003.  
  1004. B = pd.DataFrame({'x': [10, 20, 40, 50, 60, 80]},
  1005. index=[1, 2, 4, 5, 6, 8])
  1006. b = dd.repartition(B, [1, 2, 5, 8])
  1007.  
  1008. for join in ['inner', 'outer']:
  1009. result = concat_indexed_dataframes([a, b], join=join)
  1010. expected = pd.concat([A, B], axis=0, join=join)
  1011. > assert eq(result, expected)
  1012.  
  1013. dask/dataframe/tests/test_multi.py:185:
  1014. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1015. dask/dataframe/utils.py:164: in eq
  1016. a = _check_dask(a, check_names=check_names)
  1017. dask/dataframe/utils.py:109: in _check_dask
  1018. result = dsk.compute(get=get_sync)
  1019. dask/base.py:37: in compute
  1020. return compute(self, **kwargs)[0]
  1021. dask/base.py:110: in compute
  1022. results = get(dsk, keys, **kwargs)
  1023. dask/async.py:516: in get_sync
  1024. raise_on_exception=True, **kwargs)
  1025. dask/async.py:462: in get_async
  1026. fire_task()
  1027. dask/async.py:458: in fire_task
  1028. get_id, raise_on_exception])
  1029. dask/async.py:508: in apply_sync
  1030. return func(*args, **kwds)
  1031. dask/async.py:264: in execute_task
  1032. result = _execute_task(task, data)
  1033. dask/async.py:246: in _execute_task
  1034. return func(*args2)
  1035. dask/dataframe/core.py:1691: in _loc
  1036. result.index.inferred_type)
  1037. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1038.  
  1039. self = Int64Index([6, 7], dtype='int64'), label = 7, side = 'left', kind = 'integer'
  1040.  
  1041. def get_slice_bound(self, label, side, kind):
  1042. """
  1043. Calculate slice bound that corresponds to given label.
  1044.  
  1045. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  1046. of given label.
  1047.  
  1048. Parameters
  1049. ----------
  1050. label : object
  1051. side : {'left', 'right'}
  1052. kind : {'ix', 'loc', 'getitem'}
  1053.  
  1054. """
  1055. > assert kind in ['ix', 'loc', 'getitem', None]
  1056. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  1057.  
  1058. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  1059. _____________________________________________________ test_merge _____________________________________________________
  1060.  
  1061. def test_merge():
  1062. A = pd.DataFrame({'x': [1, 2, 3, 4, 5, 6], 'y': [1, 1, 2, 2, 3, 4]})
  1063. a = dd.repartition(A, [0, 4, 5])
  1064.  
  1065. B = pd.DataFrame({'y': [1, 3, 4, 4, 5, 6], 'z': [6, 5, 4, 3, 2, 1]})
  1066. b = dd.repartition(B, [0, 2, 5])
  1067.  
  1068. eq(dd.merge(a, b, left_index=True, right_index=True),
  1069. > pd.merge(A, B, left_index=True, right_index=True))
  1070.  
  1071. dask/dataframe/tests/test_multi.py:238:
  1072. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1073. dask/dataframe/utils.py:164: in eq
  1074. a = _check_dask(a, check_names=check_names)
  1075. dask/dataframe/utils.py:109: in _check_dask
  1076. result = dsk.compute(get=get_sync)
  1077. dask/base.py:37: in compute
  1078. return compute(self, **kwargs)[0]
  1079. dask/base.py:110: in compute
  1080. results = get(dsk, keys, **kwargs)
  1081. dask/async.py:516: in get_sync
  1082. raise_on_exception=True, **kwargs)
  1083. dask/async.py:462: in get_async
  1084. fire_task()
  1085. dask/async.py:458: in fire_task
  1086. get_id, raise_on_exception])
  1087. dask/async.py:508: in apply_sync
  1088. return func(*args, **kwds)
  1089. dask/async.py:264: in execute_task
  1090. result = _execute_task(task, data)
  1091. dask/async.py:246: in _execute_task
  1092. return func(*args2)
  1093. dask/dataframe/core.py:1691: in _loc
  1094. result.index.inferred_type)
  1095. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1096.  
  1097. self = RangeIndex(start=0, stop=3, step=1), label = 2, side = 'left', kind = 'integer'
  1098.  
  1099. def get_slice_bound(self, label, side, kind):
  1100. """
  1101. Calculate slice bound that corresponds to given label.
  1102.  
  1103. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  1104. of given label.
  1105.  
  1106. Parameters
  1107. ----------
  1108. label : object
  1109. side : {'left', 'right'}
  1110. kind : {'ix', 'loc', 'getitem'}
  1111.  
  1112. """
  1113. > assert kind in ['ix', 'loc', 'getitem', None]
  1114. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  1115.  
  1116. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  1117. ____________________________________________ test_merge_by_index_patterns ____________________________________________
  1118.  
  1119. def test_merge_by_index_patterns():
  1120.  
  1121. pdf1l = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7],
  1122. 'b': [7, 6, 5, 4, 3, 2, 1]})
  1123. pdf1r = pd.DataFrame({'c': [1, 2, 3, 4, 5, 6, 7],
  1124. 'd': [7, 6, 5, 4, 3, 2, 1]})
  1125.  
  1126. pdf2l = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7],
  1127. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1128. index=list('abcdefg'))
  1129. pdf2r = pd.DataFrame({'c': [7, 6, 5, 4, 3, 2, 1],
  1130. 'd': [7, 6, 5, 4, 3, 2, 1]},
  1131. index=list('abcdefg'))
  1132.  
  1133. pdf3l = pdf2l
  1134. pdf3r = pd.DataFrame({'c': [6, 7, 8, 9],
  1135. 'd': [5, 4, 3, 2]},
  1136. index=list('abdg'))
  1137.  
  1138. pdf4l = pdf2l
  1139. pdf4r = pd.DataFrame({'c': [9, 10, 11, 12],
  1140. 'd': [5, 4, 3, 2]},
  1141. index=list('abdg'))
  1142.  
  1143. # completely different index
  1144. pdf5l = pd.DataFrame({'a': [1, 1, 2, 2, 3, 3, 4],
  1145. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1146. index=list('lmnopqr'))
  1147. pdf5r = pd.DataFrame({'c': [1, 1, 1, 1],
  1148. 'd': [5, 4, 3, 2]},
  1149. index=list('abcd'))
  1150.  
  1151. pdf6l = pd.DataFrame({'a': [1, 1, 2, 2, 3, 3, 4],
  1152. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1153. index=list('cdefghi'))
  1154. pdf6r = pd.DataFrame({'c': [1, 2, 1, 2],
  1155. 'd': [5, 4, 3, 2]},
  1156. index=list('abcd'))
  1157.  
  1158. pdf7l = pd.DataFrame({'a': [1, 1, 2, 2, 3, 3, 4],
  1159. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1160. index=list('abcdefg'))
  1161. pdf7r = pd.DataFrame({'c': [5, 6, 7, 8],
  1162. 'd': [5, 4, 3, 2]},
  1163. index=list('fghi'))
  1164.  
  1165. for pdl, pdr in [(pdf1l, pdf1r), (pdf2l, pdf2r), (pdf3l, pdf3r),
  1166. (pdf4l, pdf4r), (pdf5l, pdf5r), (pdf6l, pdf6r),
  1167. (pdf7l, pdf7r)]:
  1168.  
  1169. for lpart, rpart in [(2, 2), # same partition
  1170. (3, 2), # left npartition > right npartition
  1171. (2, 3)]: # left npartition < right npartition
  1172.  
  1173. ddl = dd.from_pandas(pdl, lpart)
  1174. ddr = dd.from_pandas(pdr, rpart)
  1175.  
  1176. for how in ['inner', 'outer', 'left', 'right']:
  1177. eq(dd.merge(ddl, ddr, how=how, left_index=True, right_index=True),
  1178. > pd.merge(pdl, pdr, how=how, left_index=True, right_index=True))
  1179.  
  1180. dask/dataframe/tests/test_multi.py:336:
  1181. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1182. dask/dataframe/utils.py:164: in eq
  1183. a = _check_dask(a, check_names=check_names)
  1184. dask/dataframe/utils.py:109: in _check_dask
  1185. result = dsk.compute(get=get_sync)
  1186. dask/base.py:37: in compute
  1187. return compute(self, **kwargs)[0]
  1188. dask/base.py:110: in compute
  1189. results = get(dsk, keys, **kwargs)
  1190. dask/async.py:516: in get_sync
  1191. raise_on_exception=True, **kwargs)
  1192. dask/async.py:487: in get_async
  1193. fire_task()
  1194. dask/async.py:458: in fire_task
  1195. get_id, raise_on_exception])
  1196. dask/async.py:508: in apply_sync
  1197. return func(*args, **kwds)
  1198. dask/async.py:264: in execute_task
  1199. result = _execute_task(task, data)
  1200. dask/async.py:246: in _execute_task
  1201. return func(*args2)
  1202. dask/dataframe/core.py:1691: in _loc
  1203. result.index.inferred_type)
  1204. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1205.  
  1206. self = RangeIndex(start=0, stop=4, step=1), label = 4, side = 'left', kind = 'integer'
  1207.  
  1208. def get_slice_bound(self, label, side, kind):
  1209. """
  1210. Calculate slice bound that corresponds to given label.
  1211.  
  1212. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  1213. of given label.
  1214.  
  1215. Parameters
  1216. ----------
  1217. label : object
  1218. side : {'left', 'right'}
  1219. kind : {'ix', 'loc', 'getitem'}
  1220.  
  1221. """
  1222. > assert kind in ['ix', 'loc', 'getitem', None]
  1223. E assert 'integer' in ['ix', 'loc', 'getitem', None]
  1224.  
  1225. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  1226. ____________________________________________ test_join_by_index_patterns _____________________________________________
  1227.  
  1228. def test_join_by_index_patterns():
  1229.  
  1230. # Similar test cases as test_merge_by_index_patterns,
  1231. # but columns / index for join have same dtype
  1232.  
  1233. pdf1l = pd.DataFrame({'a': list('abcdefg'),
  1234. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1235. index=list('abcdefg'))
  1236. pdf1r = pd.DataFrame({'c': list('abcdefg'),
  1237. 'd': [7, 6, 5, 4, 3, 2, 1]},
  1238. index=list('abcdefg'))
  1239.  
  1240. pdf2l = pdf1l
  1241. pdf2r = pd.DataFrame({'c': list('gfedcba'),
  1242. 'd': [7, 6, 5, 4, 3, 2, 1]},
  1243. index=list('abcdefg'))
  1244.  
  1245. pdf3l = pdf1l
  1246. pdf3r = pd.DataFrame({'c': list('abdg'),
  1247. 'd': [5, 4, 3, 2]},
  1248. index=list('abdg'))
  1249.  
  1250. pdf4l = pd.DataFrame({'a': list('abcabce'),
  1251. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1252. index=list('abcdefg'))
  1253. pdf4r = pd.DataFrame({'c': list('abda'),
  1254. 'd': [5, 4, 3, 2]},
  1255. index=list('abdg'))
  1256.  
  1257. # completely different index
  1258. pdf5l = pd.DataFrame({'a': list('lmnopqr'),
  1259. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1260. index=list('lmnopqr'))
  1261. pdf5r = pd.DataFrame({'c': list('abcd'),
  1262. 'd': [5, 4, 3, 2]},
  1263. index=list('abcd'))
  1264.  
  1265. pdf6l = pd.DataFrame({'a': list('cdefghi'),
  1266. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1267. index=list('cdefghi'))
  1268. pdf6r = pd.DataFrame({'c': list('abab'),
  1269. 'd': [5, 4, 3, 2]},
  1270. index=list('abcd'))
  1271.  
  1272. pdf7l = pd.DataFrame({'a': list('aabbccd'),
  1273. 'b': [7, 6, 5, 4, 3, 2, 1]},
  1274. index=list('abcdefg'))
  1275. pdf7r = pd.DataFrame({'c': list('aabb'),
  1276. 'd': [5, 4, 3, 2]},
  1277. index=list('fghi'))
  1278.  
  1279. for pdl, pdr in [(pdf1l, pdf1r), (pdf2l, pdf2r), (pdf3l, pdf3r),
  1280. (pdf4l, pdf4r), (pdf5l, pdf5r), (pdf6l, pdf6r),
  1281. (pdf7l, pdf7r)]:
  1282. for lpart, rpart in [(2, 2), (3, 2), (2, 3)]:
  1283.  
  1284. ddl = dd.from_pandas(pdl, lpart)
  1285. ddr = dd.from_pandas(pdr, rpart)
  1286.  
  1287. for how in ['inner', 'outer', 'left', 'right']:
  1288. > eq(ddl.join(ddr, how=how), pdl.join(pdr, how=how))
  1289.  
  1290. dask/dataframe/tests/test_multi.py:426:
  1291. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1292. dask/dataframe/utils.py:164: in eq
  1293. a = _check_dask(a, check_names=check_names)
  1294. dask/dataframe/utils.py:109: in _check_dask
  1295. result = dsk.compute(get=get_sync)
  1296. dask/base.py:37: in compute
  1297. return compute(self, **kwargs)[0]
  1298. dask/base.py:110: in compute
  1299. results = get(dsk, keys, **kwargs)
  1300. dask/async.py:516: in get_sync
  1301. raise_on_exception=True, **kwargs)
  1302. dask/async.py:462: in get_async
  1303. fire_task()
  1304. dask/async.py:458: in fire_task
  1305. get_id, raise_on_exception])
  1306. dask/async.py:508: in apply_sync
  1307. return func(*args, **kwds)
  1308. dask/async.py:264: in execute_task
  1309. result = _execute_task(task, data)
  1310. dask/async.py:246: in _execute_task
  1311. return func(*args2)
  1312. dask/dataframe/core.py:1691: in _loc
  1313. result.index.inferred_type)
  1314. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1315.  
  1316. self = Index(['a', 'b', 'c', 'd'], dtype='object'), label = 'e', side = 'left', kind = 'string'
  1317.  
  1318. def get_slice_bound(self, label, side, kind):
  1319. """
  1320. Calculate slice bound that corresponds to given label.
  1321.  
  1322. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  1323. of given label.
  1324.  
  1325. Parameters
  1326. ----------
  1327. label : object
  1328. side : {'left', 'right'}
  1329. kind : {'ix', 'loc', 'getitem'}
  1330.  
  1331. """
  1332. > assert kind in ['ix', 'loc', 'getitem', None]
  1333. E assert 'string' in ['ix', 'loc', 'getitem', None]
  1334.  
  1335. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  1336. ___________________________________________ test_merge_by_multiple_columns ___________________________________________
  1337.  
  1338. def test_merge_by_multiple_columns():
  1339.  
  1340. pdf1l = pd.DataFrame({'a': list('abcdefghij'),
  1341. 'b': list('abcdefghij'),
  1342. 'c': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},
  1343. index=list('abcdefghij'))
  1344. pdf1r = pd.DataFrame({'d': list('abcdefghij'),
  1345. 'e': list('abcdefghij'),
  1346. 'f': [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]},
  1347. index=list('abcdefghij'))
  1348.  
  1349. pdf2l = pd.DataFrame({'a': list('abcdeabcde'),
  1350. 'b': list('abcabcabca'),
  1351. 'c': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},
  1352. index=list('abcdefghij'))
  1353. pdf2r = pd.DataFrame({'d': list('edcbaedcba'),
  1354. 'e': list('aaabbbcccd'),
  1355. 'f': [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]},
  1356. index=list('fghijklmno'))
  1357.  
  1358. pdf3l = pd.DataFrame({'a': list('aaaaaaaaaa'),
  1359. 'b': list('aaaaaaaaaa'),
  1360. 'c': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]},
  1361. index=list('abcdefghij'))
  1362. pdf3r = pd.DataFrame({'d': list('aaabbbccaa'),
  1363. 'e': list('abbbbbbbbb'),
  1364. 'f': [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]},
  1365. index=list('ABCDEFGHIJ'))
  1366.  
  1367. for pdl, pdr in [(pdf1l, pdf1r), (pdf2l, pdf2r), (pdf3l, pdf3r)]:
  1368.  
  1369. for lpart, rpart in [(2, 2), (3, 2), (2, 3)]:
  1370.  
  1371. ddl = dd.from_pandas(pdl, lpart)
  1372. ddr = dd.from_pandas(pdr, rpart)
  1373.  
  1374. for how in ['inner', 'outer', 'left', 'right']:
  1375. > eq(ddl.join(ddr, how=how), pdl.join(pdr, how=how))
  1376.  
  1377. dask/dataframe/tests/test_multi.py:492:
  1378. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1379. dask/dataframe/utils.py:164: in eq
  1380. a = _check_dask(a, check_names=check_names)
  1381. dask/dataframe/utils.py:109: in _check_dask
  1382. result = dsk.compute(get=get_sync)
  1383. dask/base.py:37: in compute
  1384. return compute(self, **kwargs)[0]
  1385. dask/base.py:110: in compute
  1386. results = get(dsk, keys, **kwargs)
  1387. dask/async.py:516: in get_sync
  1388. raise_on_exception=True, **kwargs)
  1389. dask/async.py:487: in get_async
  1390. fire_task()
  1391. dask/async.py:458: in fire_task
  1392. get_id, raise_on_exception])
  1393. dask/async.py:508: in apply_sync
  1394. return func(*args, **kwds)
  1395. dask/async.py:264: in execute_task
  1396. result = _execute_task(task, data)
  1397. dask/async.py:246: in _execute_task
  1398. return func(*args2)
  1399. dask/dataframe/core.py:1691: in _loc
  1400. result.index.inferred_type)
  1401. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1402.  
  1403. self = Index(['a', 'b', 'c', 'd', 'e'], dtype='object'), label = 'f', side = 'left', kind = 'string'
  1404.  
  1405. def get_slice_bound(self, label, side, kind):
  1406. """
  1407. Calculate slice bound that corresponds to given label.
  1408.  
  1409. Returns leftmost (one-past-the-rightmost if ``side=='right'``) position
  1410. of given label.
  1411.  
  1412. Parameters
  1413. ----------
  1414. label : object
  1415. side : {'left', 'right'}
  1416. kind : {'ix', 'loc', 'getitem'}
  1417.  
  1418. """
  1419. > assert kind in ['ix', 'loc', 'getitem', None]
  1420. E assert 'string' in ['ix', 'loc', 'getitem', None]
  1421.  
  1422. /usr/lib/python3.5/site-packages/pandas/indexes/base.py:2807: AssertionError
  1423. ___________________________________ test_series_resample[count-2-30T-right-right] ____________________________________
  1424.  
  1425. method = 'count', npartitions = 2, freq = '30T', closed = 'right', label = 'right'
  1426.  
  1427. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1428. list(product(['count', 'mean', 'ohlc'],
  1429. [2, 5],
  1430. ['30T', 'h', 'd', 'w', 'M'],
  1431. ['right', 'left'],
  1432. ['right', 'left'])))
  1433. def test_series_resample(method, npartitions, freq, closed, label):
  1434. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1435. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1436. df = pd.Series(range(len(index)), index=index)
  1437. ds = dd.from_pandas(df, npartitions=npartitions)
  1438. # Series output
  1439. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1440.  
  1441. dask/dataframe/tseries/tests/test_resample.py:23:
  1442. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1443. dask/dataframe/core.py:982: in resample
  1444. return _resample(self, rule, how=how, closed=closed, label=label)
  1445. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1446.  
  1447. 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'))>
  1448. rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  1449. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1e1198>
  1450.  
  1451. def _resample(obj, rule, how, **kwargs):
  1452. resampler = Resampler(obj, rule, **kwargs)
  1453. if how is not None:
  1454. raise FutureWarning(("how in .resample() is deprecated "
  1455. "the new syntax is .resample(...)"
  1456. > ".{0}()").format(how))
  1457. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1458.  
  1459. dask/dataframe/tseries/resample.py:28: FutureWarning
  1460. ____________________________________ test_series_resample[count-2-30T-right-left] ____________________________________
  1461.  
  1462. method = 'count', npartitions = 2, freq = '30T', closed = 'right', label = 'left'
  1463.  
  1464. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1465. list(product(['count', 'mean', 'ohlc'],
  1466. [2, 5],
  1467. ['30T', 'h', 'd', 'w', 'M'],
  1468. ['right', 'left'],
  1469. ['right', 'left'])))
  1470. def test_series_resample(method, npartitions, freq, closed, label):
  1471. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1472. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1473. df = pd.Series(range(len(index)), index=index)
  1474. ds = dd.from_pandas(df, npartitions=npartitions)
  1475. # Series output
  1476. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1477.  
  1478. dask/dataframe/tseries/tests/test_resample.py:23:
  1479. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1480. dask/dataframe/core.py:982: in resample
  1481. return _resample(self, rule, how=how, closed=closed, label=label)
  1482. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1483.  
  1484. 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'))>
  1485. rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  1486. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f201da0>
  1487.  
  1488. def _resample(obj, rule, how, **kwargs):
  1489. resampler = Resampler(obj, rule, **kwargs)
  1490. if how is not None:
  1491. raise FutureWarning(("how in .resample() is deprecated "
  1492. "the new syntax is .resample(...)"
  1493. > ".{0}()").format(how))
  1494. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1495.  
  1496. dask/dataframe/tseries/resample.py:28: FutureWarning
  1497. ____________________________________ test_series_resample[count-2-30T-left-right] ____________________________________
  1498.  
  1499. method = 'count', npartitions = 2, freq = '30T', closed = 'left', label = 'right'
  1500.  
  1501. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1502. list(product(['count', 'mean', 'ohlc'],
  1503. [2, 5],
  1504. ['30T', 'h', 'd', 'w', 'M'],
  1505. ['right', 'left'],
  1506. ['right', 'left'])))
  1507. def test_series_resample(method, npartitions, freq, closed, label):
  1508. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1509. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1510. df = pd.Series(range(len(index)), index=index)
  1511. ds = dd.from_pandas(df, npartitions=npartitions)
  1512. # Series output
  1513. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1514.  
  1515. dask/dataframe/tseries/tests/test_resample.py:23:
  1516. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1517. dask/dataframe/core.py:982: in resample
  1518. return _resample(self, rule, how=how, closed=closed, label=label)
  1519. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1520.  
  1521. 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'))>
  1522. rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  1523. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f20eda0>
  1524.  
  1525. def _resample(obj, rule, how, **kwargs):
  1526. resampler = Resampler(obj, rule, **kwargs)
  1527. if how is not None:
  1528. raise FutureWarning(("how in .resample() is deprecated "
  1529. "the new syntax is .resample(...)"
  1530. > ".{0}()").format(how))
  1531. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1532.  
  1533. dask/dataframe/tseries/resample.py:28: FutureWarning
  1534. ____________________________________ test_series_resample[count-2-30T-left-left] _____________________________________
  1535.  
  1536. method = 'count', npartitions = 2, freq = '30T', closed = 'left', label = 'left'
  1537.  
  1538. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1539. list(product(['count', 'mean', 'ohlc'],
  1540. [2, 5],
  1541. ['30T', 'h', 'd', 'w', 'M'],
  1542. ['right', 'left'],
  1543. ['right', 'left'])))
  1544. def test_series_resample(method, npartitions, freq, closed, label):
  1545. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1546. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1547. df = pd.Series(range(len(index)), index=index)
  1548. ds = dd.from_pandas(df, npartitions=npartitions)
  1549. # Series output
  1550. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1551.  
  1552. dask/dataframe/tseries/tests/test_resample.py:23:
  1553. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1554. dask/dataframe/core.py:982: in resample
  1555. return _resample(self, rule, how=how, closed=closed, label=label)
  1556. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1557.  
  1558. 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'))>
  1559. rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  1560. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eac0438>
  1561.  
  1562. def _resample(obj, rule, how, **kwargs):
  1563. resampler = Resampler(obj, rule, **kwargs)
  1564. if how is not None:
  1565. raise FutureWarning(("how in .resample() is deprecated "
  1566. "the new syntax is .resample(...)"
  1567. > ".{0}()").format(how))
  1568. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1569.  
  1570. dask/dataframe/tseries/resample.py:28: FutureWarning
  1571. ____________________________________ test_series_resample[count-2-h-right-right] _____________________________________
  1572.  
  1573. method = 'count', npartitions = 2, freq = 'h', closed = 'right', label = 'right'
  1574.  
  1575. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1576. list(product(['count', 'mean', 'ohlc'],
  1577. [2, 5],
  1578. ['30T', 'h', 'd', 'w', 'M'],
  1579. ['right', 'left'],
  1580. ['right', 'left'])))
  1581. def test_series_resample(method, npartitions, freq, closed, label):
  1582. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1583. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1584. df = pd.Series(range(len(index)), index=index)
  1585. ds = dd.from_pandas(df, npartitions=npartitions)
  1586. # Series output
  1587. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1588.  
  1589. dask/dataframe/tseries/tests/test_resample.py:23:
  1590. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1591. dask/dataframe/core.py:982: in resample
  1592. return _resample(self, rule, how=how, closed=closed, label=label)
  1593. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1594.  
  1595. 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'))>
  1596. rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  1597. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f144b70>
  1598.  
  1599. def _resample(obj, rule, how, **kwargs):
  1600. resampler = Resampler(obj, rule, **kwargs)
  1601. if how is not None:
  1602. raise FutureWarning(("how in .resample() is deprecated "
  1603. "the new syntax is .resample(...)"
  1604. > ".{0}()").format(how))
  1605. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1606.  
  1607. dask/dataframe/tseries/resample.py:28: FutureWarning
  1608. _____________________________________ test_series_resample[count-2-h-right-left] _____________________________________
  1609.  
  1610. method = 'count', npartitions = 2, freq = 'h', closed = 'right', label = 'left'
  1611.  
  1612. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1613. list(product(['count', 'mean', 'ohlc'],
  1614. [2, 5],
  1615. ['30T', 'h', 'd', 'w', 'M'],
  1616. ['right', 'left'],
  1617. ['right', 'left'])))
  1618. def test_series_resample(method, npartitions, freq, closed, label):
  1619. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1620. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1621. df = pd.Series(range(len(index)), index=index)
  1622. ds = dd.from_pandas(df, npartitions=npartitions)
  1623. # Series output
  1624. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1625.  
  1626. dask/dataframe/tseries/tests/test_resample.py:23:
  1627. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1628. dask/dataframe/core.py:982: in resample
  1629. return _resample(self, rule, how=how, closed=closed, label=label)
  1630. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1631.  
  1632. 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'))>
  1633. rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  1634. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f22a550>
  1635.  
  1636. def _resample(obj, rule, how, **kwargs):
  1637. resampler = Resampler(obj, rule, **kwargs)
  1638. if how is not None:
  1639. raise FutureWarning(("how in .resample() is deprecated "
  1640. "the new syntax is .resample(...)"
  1641. > ".{0}()").format(how))
  1642. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1643.  
  1644. dask/dataframe/tseries/resample.py:28: FutureWarning
  1645. _____________________________________ test_series_resample[count-2-h-left-right] _____________________________________
  1646.  
  1647. method = 'count', npartitions = 2, freq = 'h', closed = 'left', label = 'right'
  1648.  
  1649. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1650. list(product(['count', 'mean', 'ohlc'],
  1651. [2, 5],
  1652. ['30T', 'h', 'd', 'w', 'M'],
  1653. ['right', 'left'],
  1654. ['right', 'left'])))
  1655. def test_series_resample(method, npartitions, freq, closed, label):
  1656. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1657. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1658. df = pd.Series(range(len(index)), index=index)
  1659. ds = dd.from_pandas(df, npartitions=npartitions)
  1660. # Series output
  1661. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1662.  
  1663. dask/dataframe/tseries/tests/test_resample.py:23:
  1664. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1665. dask/dataframe/core.py:982: in resample
  1666. return _resample(self, rule, how=how, closed=closed, label=label)
  1667. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1668.  
  1669. 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'))>
  1670. rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  1671. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e87a5f8>
  1672.  
  1673. def _resample(obj, rule, how, **kwargs):
  1674. resampler = Resampler(obj, rule, **kwargs)
  1675. if how is not None:
  1676. raise FutureWarning(("how in .resample() is deprecated "
  1677. "the new syntax is .resample(...)"
  1678. > ".{0}()").format(how))
  1679. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1680.  
  1681. dask/dataframe/tseries/resample.py:28: FutureWarning
  1682. _____________________________________ test_series_resample[count-2-h-left-left] ______________________________________
  1683.  
  1684. method = 'count', npartitions = 2, freq = 'h', closed = 'left', label = 'left'
  1685.  
  1686. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1687. list(product(['count', 'mean', 'ohlc'],
  1688. [2, 5],
  1689. ['30T', 'h', 'd', 'w', 'M'],
  1690. ['right', 'left'],
  1691. ['right', 'left'])))
  1692. def test_series_resample(method, npartitions, freq, closed, label):
  1693. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1694. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1695. df = pd.Series(range(len(index)), index=index)
  1696. ds = dd.from_pandas(df, npartitions=npartitions)
  1697. # Series output
  1698. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1699.  
  1700. dask/dataframe/tseries/tests/test_resample.py:23:
  1701. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1702. dask/dataframe/core.py:982: in resample
  1703. return _resample(self, rule, how=how, closed=closed, label=label)
  1704. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1705.  
  1706. 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'))>
  1707. rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  1708. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f18da58>
  1709.  
  1710. def _resample(obj, rule, how, **kwargs):
  1711. resampler = Resampler(obj, rule, **kwargs)
  1712. if how is not None:
  1713. raise FutureWarning(("how in .resample() is deprecated "
  1714. "the new syntax is .resample(...)"
  1715. > ".{0}()").format(how))
  1716. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1717.  
  1718. dask/dataframe/tseries/resample.py:28: FutureWarning
  1719. ____________________________________ test_series_resample[count-2-d-right-right] _____________________________________
  1720.  
  1721. method = 'count', npartitions = 2, freq = 'd', closed = 'right', label = 'right'
  1722.  
  1723. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1724. list(product(['count', 'mean', 'ohlc'],
  1725. [2, 5],
  1726. ['30T', 'h', 'd', 'w', 'M'],
  1727. ['right', 'left'],
  1728. ['right', 'left'])))
  1729. def test_series_resample(method, npartitions, freq, closed, label):
  1730. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1731. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1732. df = pd.Series(range(len(index)), index=index)
  1733. ds = dd.from_pandas(df, npartitions=npartitions)
  1734. # Series output
  1735. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1736.  
  1737. dask/dataframe/tseries/tests/test_resample.py:23:
  1738. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1739. dask/dataframe/core.py:982: in resample
  1740. return _resample(self, rule, how=how, closed=closed, label=label)
  1741. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1742.  
  1743. 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'))>
  1744. rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  1745. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0fe2b0>
  1746.  
  1747. def _resample(obj, rule, how, **kwargs):
  1748. resampler = Resampler(obj, rule, **kwargs)
  1749. if how is not None:
  1750. raise FutureWarning(("how in .resample() is deprecated "
  1751. "the new syntax is .resample(...)"
  1752. > ".{0}()").format(how))
  1753. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1754.  
  1755. dask/dataframe/tseries/resample.py:28: FutureWarning
  1756. _____________________________________ test_series_resample[count-2-d-right-left] _____________________________________
  1757.  
  1758. method = 'count', npartitions = 2, freq = 'd', closed = 'right', label = 'left'
  1759.  
  1760. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1761. list(product(['count', 'mean', 'ohlc'],
  1762. [2, 5],
  1763. ['30T', 'h', 'd', 'w', 'M'],
  1764. ['right', 'left'],
  1765. ['right', 'left'])))
  1766. def test_series_resample(method, npartitions, freq, closed, label):
  1767. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1768. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1769. df = pd.Series(range(len(index)), index=index)
  1770. ds = dd.from_pandas(df, npartitions=npartitions)
  1771. # Series output
  1772. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1773.  
  1774. dask/dataframe/tseries/tests/test_resample.py:23:
  1775. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1776. dask/dataframe/core.py:982: in resample
  1777. return _resample(self, rule, how=how, closed=closed, label=label)
  1778. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1779.  
  1780. 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'))>
  1781. rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  1782. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f19e978>
  1783.  
  1784. def _resample(obj, rule, how, **kwargs):
  1785. resampler = Resampler(obj, rule, **kwargs)
  1786. if how is not None:
  1787. raise FutureWarning(("how in .resample() is deprecated "
  1788. "the new syntax is .resample(...)"
  1789. > ".{0}()").format(how))
  1790. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1791.  
  1792. dask/dataframe/tseries/resample.py:28: FutureWarning
  1793. _____________________________________ test_series_resample[count-2-d-left-right] _____________________________________
  1794.  
  1795. method = 'count', npartitions = 2, freq = 'd', closed = 'left', label = 'right'
  1796.  
  1797. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1798. list(product(['count', 'mean', 'ohlc'],
  1799. [2, 5],
  1800. ['30T', 'h', 'd', 'w', 'M'],
  1801. ['right', 'left'],
  1802. ['right', 'left'])))
  1803. def test_series_resample(method, npartitions, freq, closed, label):
  1804. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1805. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1806. df = pd.Series(range(len(index)), index=index)
  1807. ds = dd.from_pandas(df, npartitions=npartitions)
  1808. # Series output
  1809. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1810.  
  1811. dask/dataframe/tseries/tests/test_resample.py:23:
  1812. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1813. dask/dataframe/core.py:982: in resample
  1814. return _resample(self, rule, how=how, closed=closed, label=label)
  1815. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1816.  
  1817. 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'))>
  1818. rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  1819. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4492e8>
  1820.  
  1821. def _resample(obj, rule, how, **kwargs):
  1822. resampler = Resampler(obj, rule, **kwargs)
  1823. if how is not None:
  1824. raise FutureWarning(("how in .resample() is deprecated "
  1825. "the new syntax is .resample(...)"
  1826. > ".{0}()").format(how))
  1827. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1828.  
  1829. dask/dataframe/tseries/resample.py:28: FutureWarning
  1830. _____________________________________ test_series_resample[count-2-d-left-left] ______________________________________
  1831.  
  1832. method = 'count', npartitions = 2, freq = 'd', closed = 'left', label = 'left'
  1833.  
  1834. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1835. list(product(['count', 'mean', 'ohlc'],
  1836. [2, 5],
  1837. ['30T', 'h', 'd', 'w', 'M'],
  1838. ['right', 'left'],
  1839. ['right', 'left'])))
  1840. def test_series_resample(method, npartitions, freq, closed, label):
  1841. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1842. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1843. df = pd.Series(range(len(index)), index=index)
  1844. ds = dd.from_pandas(df, npartitions=npartitions)
  1845. # Series output
  1846. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1847.  
  1848. dask/dataframe/tseries/tests/test_resample.py:23:
  1849. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1850. dask/dataframe/core.py:982: in resample
  1851. return _resample(self, rule, how=how, closed=closed, label=label)
  1852. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1853.  
  1854. 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'))>
  1855. rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  1856. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f12ab38>
  1857.  
  1858. def _resample(obj, rule, how, **kwargs):
  1859. resampler = Resampler(obj, rule, **kwargs)
  1860. if how is not None:
  1861. raise FutureWarning(("how in .resample() is deprecated "
  1862. "the new syntax is .resample(...)"
  1863. > ".{0}()").format(how))
  1864. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1865.  
  1866. dask/dataframe/tseries/resample.py:28: FutureWarning
  1867. ____________________________________ test_series_resample[count-2-w-right-right] _____________________________________
  1868.  
  1869. method = 'count', npartitions = 2, freq = 'w', closed = 'right', label = 'right'
  1870.  
  1871. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1872. list(product(['count', 'mean', 'ohlc'],
  1873. [2, 5],
  1874. ['30T', 'h', 'd', 'w', 'M'],
  1875. ['right', 'left'],
  1876. ['right', 'left'])))
  1877. def test_series_resample(method, npartitions, freq, closed, label):
  1878. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1879. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1880. df = pd.Series(range(len(index)), index=index)
  1881. ds = dd.from_pandas(df, npartitions=npartitions)
  1882. # Series output
  1883. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1884.  
  1885. dask/dataframe/tseries/tests/test_resample.py:23:
  1886. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1887. dask/dataframe/core.py:982: in resample
  1888. return _resample(self, rule, how=how, closed=closed, label=label)
  1889. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1890.  
  1891. 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'))>
  1892. rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  1893. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e908278>
  1894.  
  1895. def _resample(obj, rule, how, **kwargs):
  1896. resampler = Resampler(obj, rule, **kwargs)
  1897. if how is not None:
  1898. raise FutureWarning(("how in .resample() is deprecated "
  1899. "the new syntax is .resample(...)"
  1900. > ".{0}()").format(how))
  1901. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1902.  
  1903. dask/dataframe/tseries/resample.py:28: FutureWarning
  1904. _____________________________________ test_series_resample[count-2-w-right-left] _____________________________________
  1905.  
  1906. method = 'count', npartitions = 2, freq = 'w', closed = 'right', label = 'left'
  1907.  
  1908. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1909. list(product(['count', 'mean', 'ohlc'],
  1910. [2, 5],
  1911. ['30T', 'h', 'd', 'w', 'M'],
  1912. ['right', 'left'],
  1913. ['right', 'left'])))
  1914. def test_series_resample(method, npartitions, freq, closed, label):
  1915. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1916. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1917. df = pd.Series(range(len(index)), index=index)
  1918. ds = dd.from_pandas(df, npartitions=npartitions)
  1919. # Series output
  1920. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1921.  
  1922. dask/dataframe/tseries/tests/test_resample.py:23:
  1923. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1924. dask/dataframe/core.py:982: in resample
  1925. return _resample(self, rule, how=how, closed=closed, label=label)
  1926. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1927.  
  1928. 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'))>
  1929. rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  1930. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f128550>
  1931.  
  1932. def _resample(obj, rule, how, **kwargs):
  1933. resampler = Resampler(obj, rule, **kwargs)
  1934. if how is not None:
  1935. raise FutureWarning(("how in .resample() is deprecated "
  1936. "the new syntax is .resample(...)"
  1937. > ".{0}()").format(how))
  1938. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1939.  
  1940. dask/dataframe/tseries/resample.py:28: FutureWarning
  1941. _____________________________________ test_series_resample[count-2-w-left-right] _____________________________________
  1942.  
  1943. method = 'count', npartitions = 2, freq = 'w', closed = 'left', label = 'right'
  1944.  
  1945. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1946. list(product(['count', 'mean', 'ohlc'],
  1947. [2, 5],
  1948. ['30T', 'h', 'd', 'w', 'M'],
  1949. ['right', 'left'],
  1950. ['right', 'left'])))
  1951. def test_series_resample(method, npartitions, freq, closed, label):
  1952. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1953. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1954. df = pd.Series(range(len(index)), index=index)
  1955. ds = dd.from_pandas(df, npartitions=npartitions)
  1956. # Series output
  1957. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1958.  
  1959. dask/dataframe/tseries/tests/test_resample.py:23:
  1960. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1961. dask/dataframe/core.py:982: in resample
  1962. return _resample(self, rule, how=how, closed=closed, label=label)
  1963. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1964.  
  1965. 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'))>
  1966. rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  1967. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f181d30>
  1968.  
  1969. def _resample(obj, rule, how, **kwargs):
  1970. resampler = Resampler(obj, rule, **kwargs)
  1971. if how is not None:
  1972. raise FutureWarning(("how in .resample() is deprecated "
  1973. "the new syntax is .resample(...)"
  1974. > ".{0}()").format(how))
  1975. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  1976.  
  1977. dask/dataframe/tseries/resample.py:28: FutureWarning
  1978. _____________________________________ test_series_resample[count-2-w-left-left] ______________________________________
  1979.  
  1980. method = 'count', npartitions = 2, freq = 'w', closed = 'left', label = 'left'
  1981.  
  1982. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  1983. list(product(['count', 'mean', 'ohlc'],
  1984. [2, 5],
  1985. ['30T', 'h', 'd', 'w', 'M'],
  1986. ['right', 'left'],
  1987. ['right', 'left'])))
  1988. def test_series_resample(method, npartitions, freq, closed, label):
  1989. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  1990. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  1991. df = pd.Series(range(len(index)), index=index)
  1992. ds = dd.from_pandas(df, npartitions=npartitions)
  1993. # Series output
  1994. > result = ds.resample(freq, how=method, closed=closed, label=label)
  1995.  
  1996. dask/dataframe/tseries/tests/test_resample.py:23:
  1997. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1998. dask/dataframe/core.py:982: in resample
  1999. return _resample(self, rule, how=how, closed=closed, label=label)
  2000. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2001.  
  2002. 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'))>
  2003. rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  2004. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f161c18>
  2005.  
  2006. def _resample(obj, rule, how, **kwargs):
  2007. resampler = Resampler(obj, rule, **kwargs)
  2008. if how is not None:
  2009. raise FutureWarning(("how in .resample() is deprecated "
  2010. "the new syntax is .resample(...)"
  2011. > ".{0}()").format(how))
  2012. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2013.  
  2014. dask/dataframe/tseries/resample.py:28: FutureWarning
  2015. ____________________________________ test_series_resample[count-2-M-right-right] _____________________________________
  2016.  
  2017. method = 'count', npartitions = 2, freq = 'M', closed = 'right', label = 'right'
  2018.  
  2019. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2020. list(product(['count', 'mean', 'ohlc'],
  2021. [2, 5],
  2022. ['30T', 'h', 'd', 'w', 'M'],
  2023. ['right', 'left'],
  2024. ['right', 'left'])))
  2025. def test_series_resample(method, npartitions, freq, closed, label):
  2026. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2027. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2028. df = pd.Series(range(len(index)), index=index)
  2029. ds = dd.from_pandas(df, npartitions=npartitions)
  2030. # Series output
  2031. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2032.  
  2033. dask/dataframe/tseries/tests/test_resample.py:23:
  2034. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2035. dask/dataframe/core.py:982: in resample
  2036. return _resample(self, rule, how=how, closed=closed, label=label)
  2037. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2038.  
  2039. 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'))>
  2040. rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  2041. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1eeda0>
  2042.  
  2043. def _resample(obj, rule, how, **kwargs):
  2044. resampler = Resampler(obj, rule, **kwargs)
  2045. if how is not None:
  2046. raise FutureWarning(("how in .resample() is deprecated "
  2047. "the new syntax is .resample(...)"
  2048. > ".{0}()").format(how))
  2049. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2050.  
  2051. dask/dataframe/tseries/resample.py:28: FutureWarning
  2052. _____________________________________ test_series_resample[count-2-M-right-left] _____________________________________
  2053.  
  2054. method = 'count', npartitions = 2, freq = 'M', closed = 'right', label = 'left'
  2055.  
  2056. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2057. list(product(['count', 'mean', 'ohlc'],
  2058. [2, 5],
  2059. ['30T', 'h', 'd', 'w', 'M'],
  2060. ['right', 'left'],
  2061. ['right', 'left'])))
  2062. def test_series_resample(method, npartitions, freq, closed, label):
  2063. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2064. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2065. df = pd.Series(range(len(index)), index=index)
  2066. ds = dd.from_pandas(df, npartitions=npartitions)
  2067. # Series output
  2068. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2069.  
  2070. dask/dataframe/tseries/tests/test_resample.py:23:
  2071. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2072. dask/dataframe/core.py:982: in resample
  2073. return _resample(self, rule, how=how, closed=closed, label=label)
  2074. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2075.  
  2076. 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'))>
  2077. rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  2078. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e82a898>
  2079.  
  2080. def _resample(obj, rule, how, **kwargs):
  2081. resampler = Resampler(obj, rule, **kwargs)
  2082. if how is not None:
  2083. raise FutureWarning(("how in .resample() is deprecated "
  2084. "the new syntax is .resample(...)"
  2085. > ".{0}()").format(how))
  2086. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2087.  
  2088. dask/dataframe/tseries/resample.py:28: FutureWarning
  2089. _____________________________________ test_series_resample[count-2-M-left-right] _____________________________________
  2090.  
  2091. method = 'count', npartitions = 2, freq = 'M', closed = 'left', label = 'right'
  2092.  
  2093. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2094. list(product(['count', 'mean', 'ohlc'],
  2095. [2, 5],
  2096. ['30T', 'h', 'd', 'w', 'M'],
  2097. ['right', 'left'],
  2098. ['right', 'left'])))
  2099. def test_series_resample(method, npartitions, freq, closed, label):
  2100. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2101. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2102. df = pd.Series(range(len(index)), index=index)
  2103. ds = dd.from_pandas(df, npartitions=npartitions)
  2104. # Series output
  2105. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2106.  
  2107. dask/dataframe/tseries/tests/test_resample.py:23:
  2108. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2109. dask/dataframe/core.py:982: in resample
  2110. return _resample(self, rule, how=how, closed=closed, label=label)
  2111. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2112.  
  2113. 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'))>
  2114. rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  2115. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f111160>
  2116.  
  2117. def _resample(obj, rule, how, **kwargs):
  2118. resampler = Resampler(obj, rule, **kwargs)
  2119. if how is not None:
  2120. raise FutureWarning(("how in .resample() is deprecated "
  2121. "the new syntax is .resample(...)"
  2122. > ".{0}()").format(how))
  2123. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2124.  
  2125. dask/dataframe/tseries/resample.py:28: FutureWarning
  2126. _____________________________________ test_series_resample[count-2-M-left-left] ______________________________________
  2127.  
  2128. method = 'count', npartitions = 2, freq = 'M', closed = 'left', label = 'left'
  2129.  
  2130. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2131. list(product(['count', 'mean', 'ohlc'],
  2132. [2, 5],
  2133. ['30T', 'h', 'd', 'w', 'M'],
  2134. ['right', 'left'],
  2135. ['right', 'left'])))
  2136. def test_series_resample(method, npartitions, freq, closed, label):
  2137. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2138. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2139. df = pd.Series(range(len(index)), index=index)
  2140. ds = dd.from_pandas(df, npartitions=npartitions)
  2141. # Series output
  2142. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2143.  
  2144. dask/dataframe/tseries/tests/test_resample.py:23:
  2145. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2146. dask/dataframe/core.py:982: in resample
  2147. return _resample(self, rule, how=how, closed=closed, label=label)
  2148. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2149.  
  2150. 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'))>
  2151. rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  2152. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f19c518>
  2153.  
  2154. def _resample(obj, rule, how, **kwargs):
  2155. resampler = Resampler(obj, rule, **kwargs)
  2156. if how is not None:
  2157. raise FutureWarning(("how in .resample() is deprecated "
  2158. "the new syntax is .resample(...)"
  2159. > ".{0}()").format(how))
  2160. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2161.  
  2162. dask/dataframe/tseries/resample.py:28: FutureWarning
  2163. ___________________________________ test_series_resample[count-5-30T-right-right] ____________________________________
  2164.  
  2165. method = 'count', npartitions = 5, freq = '30T', closed = 'right', label = 'right'
  2166.  
  2167. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2168. list(product(['count', 'mean', 'ohlc'],
  2169. [2, 5],
  2170. ['30T', 'h', 'd', 'w', 'M'],
  2171. ['right', 'left'],
  2172. ['right', 'left'])))
  2173. def test_series_resample(method, npartitions, freq, closed, label):
  2174. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2175. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2176. df = pd.Series(range(len(index)), index=index)
  2177. ds = dd.from_pandas(df, npartitions=npartitions)
  2178. # Series output
  2179. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2180.  
  2181. dask/dataframe/tseries/tests/test_resample.py:23:
  2182. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2183. dask/dataframe/core.py:982: in resample
  2184. return _resample(self, rule, how=how, closed=closed, label=label)
  2185. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2186.  
  2187. 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'))>
  2188. rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  2189. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eb95c18>
  2190.  
  2191. def _resample(obj, rule, how, **kwargs):
  2192. resampler = Resampler(obj, rule, **kwargs)
  2193. if how is not None:
  2194. raise FutureWarning(("how in .resample() is deprecated "
  2195. "the new syntax is .resample(...)"
  2196. > ".{0}()").format(how))
  2197. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2198.  
  2199. dask/dataframe/tseries/resample.py:28: FutureWarning
  2200. ____________________________________ test_series_resample[count-5-30T-right-left] ____________________________________
  2201.  
  2202. method = 'count', npartitions = 5, freq = '30T', closed = 'right', label = 'left'
  2203.  
  2204. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2205. list(product(['count', 'mean', 'ohlc'],
  2206. [2, 5],
  2207. ['30T', 'h', 'd', 'w', 'M'],
  2208. ['right', 'left'],
  2209. ['right', 'left'])))
  2210. def test_series_resample(method, npartitions, freq, closed, label):
  2211. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2212. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2213. df = pd.Series(range(len(index)), index=index)
  2214. ds = dd.from_pandas(df, npartitions=npartitions)
  2215. # Series output
  2216. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2217.  
  2218. dask/dataframe/tseries/tests/test_resample.py:23:
  2219. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2220. dask/dataframe/core.py:982: in resample
  2221. return _resample(self, rule, how=how, closed=closed, label=label)
  2222. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2223.  
  2224. 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'))>
  2225. rule = '30T', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  2226. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f138cc0>
  2227.  
  2228. def _resample(obj, rule, how, **kwargs):
  2229. resampler = Resampler(obj, rule, **kwargs)
  2230. if how is not None:
  2231. raise FutureWarning(("how in .resample() is deprecated "
  2232. "the new syntax is .resample(...)"
  2233. > ".{0}()").format(how))
  2234. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2235.  
  2236. dask/dataframe/tseries/resample.py:28: FutureWarning
  2237. ____________________________________ test_series_resample[count-5-30T-left-right] ____________________________________
  2238.  
  2239. method = 'count', npartitions = 5, freq = '30T', closed = 'left', label = 'right'
  2240.  
  2241. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2242. list(product(['count', 'mean', 'ohlc'],
  2243. [2, 5],
  2244. ['30T', 'h', 'd', 'w', 'M'],
  2245. ['right', 'left'],
  2246. ['right', 'left'])))
  2247. def test_series_resample(method, npartitions, freq, closed, label):
  2248. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2249. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2250. df = pd.Series(range(len(index)), index=index)
  2251. ds = dd.from_pandas(df, npartitions=npartitions)
  2252. # Series output
  2253. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2254.  
  2255. dask/dataframe/tseries/tests/test_resample.py:23:
  2256. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2257. dask/dataframe/core.py:982: in resample
  2258. return _resample(self, rule, how=how, closed=closed, label=label)
  2259. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2260.  
  2261. 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'))>
  2262. rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  2263. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f171470>
  2264.  
  2265. def _resample(obj, rule, how, **kwargs):
  2266. resampler = Resampler(obj, rule, **kwargs)
  2267. if how is not None:
  2268. raise FutureWarning(("how in .resample() is deprecated "
  2269. "the new syntax is .resample(...)"
  2270. > ".{0}()").format(how))
  2271. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2272.  
  2273. dask/dataframe/tseries/resample.py:28: FutureWarning
  2274. ____________________________________ test_series_resample[count-5-30T-left-left] _____________________________________
  2275.  
  2276. method = 'count', npartitions = 5, freq = '30T', closed = 'left', label = 'left'
  2277.  
  2278. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2279. list(product(['count', 'mean', 'ohlc'],
  2280. [2, 5],
  2281. ['30T', 'h', 'd', 'w', 'M'],
  2282. ['right', 'left'],
  2283. ['right', 'left'])))
  2284. def test_series_resample(method, npartitions, freq, closed, label):
  2285. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2286. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2287. df = pd.Series(range(len(index)), index=index)
  2288. ds = dd.from_pandas(df, npartitions=npartitions)
  2289. # Series output
  2290. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2291.  
  2292. dask/dataframe/tseries/tests/test_resample.py:23:
  2293. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2294. dask/dataframe/core.py:982: in resample
  2295. return _resample(self, rule, how=how, closed=closed, label=label)
  2296. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2297.  
  2298. 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'))>
  2299. rule = '30T', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  2300. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f24d860>
  2301.  
  2302. def _resample(obj, rule, how, **kwargs):
  2303. resampler = Resampler(obj, rule, **kwargs)
  2304. if how is not None:
  2305. raise FutureWarning(("how in .resample() is deprecated "
  2306. "the new syntax is .resample(...)"
  2307. > ".{0}()").format(how))
  2308. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2309.  
  2310. dask/dataframe/tseries/resample.py:28: FutureWarning
  2311. ____________________________________ test_series_resample[count-5-h-right-right] _____________________________________
  2312.  
  2313. method = 'count', npartitions = 5, freq = 'h', closed = 'right', label = 'right'
  2314.  
  2315. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2316. list(product(['count', 'mean', 'ohlc'],
  2317. [2, 5],
  2318. ['30T', 'h', 'd', 'w', 'M'],
  2319. ['right', 'left'],
  2320. ['right', 'left'])))
  2321. def test_series_resample(method, npartitions, freq, closed, label):
  2322. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2323. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2324. df = pd.Series(range(len(index)), index=index)
  2325. ds = dd.from_pandas(df, npartitions=npartitions)
  2326. # Series output
  2327. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2328.  
  2329. dask/dataframe/tseries/tests/test_resample.py:23:
  2330. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2331. dask/dataframe/core.py:982: in resample
  2332. return _resample(self, rule, how=how, closed=closed, label=label)
  2333. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2334.  
  2335. 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'))>
  2336. rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  2337. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f13a940>
  2338.  
  2339. def _resample(obj, rule, how, **kwargs):
  2340. resampler = Resampler(obj, rule, **kwargs)
  2341. if how is not None:
  2342. raise FutureWarning(("how in .resample() is deprecated "
  2343. "the new syntax is .resample(...)"
  2344. > ".{0}()").format(how))
  2345. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2346.  
  2347. dask/dataframe/tseries/resample.py:28: FutureWarning
  2348. _____________________________________ test_series_resample[count-5-h-right-left] _____________________________________
  2349.  
  2350. method = 'count', npartitions = 5, freq = 'h', closed = 'right', label = 'left'
  2351.  
  2352. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2353. list(product(['count', 'mean', 'ohlc'],
  2354. [2, 5],
  2355. ['30T', 'h', 'd', 'w', 'M'],
  2356. ['right', 'left'],
  2357. ['right', 'left'])))
  2358. def test_series_resample(method, npartitions, freq, closed, label):
  2359. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2360. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2361. df = pd.Series(range(len(index)), index=index)
  2362. ds = dd.from_pandas(df, npartitions=npartitions)
  2363. # Series output
  2364. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2365.  
  2366. dask/dataframe/tseries/tests/test_resample.py:23:
  2367. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2368. dask/dataframe/core.py:982: in resample
  2369. return _resample(self, rule, how=how, closed=closed, label=label)
  2370. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2371.  
  2372. 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'))>
  2373. rule = 'h', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  2374. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f24e1d0>
  2375.  
  2376. def _resample(obj, rule, how, **kwargs):
  2377. resampler = Resampler(obj, rule, **kwargs)
  2378. if how is not None:
  2379. raise FutureWarning(("how in .resample() is deprecated "
  2380. "the new syntax is .resample(...)"
  2381. > ".{0}()").format(how))
  2382. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2383.  
  2384. dask/dataframe/tseries/resample.py:28: FutureWarning
  2385. _____________________________________ test_series_resample[count-5-h-left-right] _____________________________________
  2386.  
  2387. method = 'count', npartitions = 5, freq = 'h', closed = 'left', label = 'right'
  2388.  
  2389. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2390. list(product(['count', 'mean', 'ohlc'],
  2391. [2, 5],
  2392. ['30T', 'h', 'd', 'w', 'M'],
  2393. ['right', 'left'],
  2394. ['right', 'left'])))
  2395. def test_series_resample(method, npartitions, freq, closed, label):
  2396. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2397. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2398. df = pd.Series(range(len(index)), index=index)
  2399. ds = dd.from_pandas(df, npartitions=npartitions)
  2400. # Series output
  2401. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2402.  
  2403. dask/dataframe/tseries/tests/test_resample.py:23:
  2404. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2405. dask/dataframe/core.py:982: in resample
  2406. return _resample(self, rule, how=how, closed=closed, label=label)
  2407. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2408.  
  2409. 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'))>
  2410. rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  2411. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eaec978>
  2412.  
  2413. def _resample(obj, rule, how, **kwargs):
  2414. resampler = Resampler(obj, rule, **kwargs)
  2415. if how is not None:
  2416. raise FutureWarning(("how in .resample() is deprecated "
  2417. "the new syntax is .resample(...)"
  2418. > ".{0}()").format(how))
  2419. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2420.  
  2421. dask/dataframe/tseries/resample.py:28: FutureWarning
  2422. _____________________________________ test_series_resample[count-5-h-left-left] ______________________________________
  2423.  
  2424. method = 'count', npartitions = 5, freq = 'h', closed = 'left', label = 'left'
  2425.  
  2426. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2427. list(product(['count', 'mean', 'ohlc'],
  2428. [2, 5],
  2429. ['30T', 'h', 'd', 'w', 'M'],
  2430. ['right', 'left'],
  2431. ['right', 'left'])))
  2432. def test_series_resample(method, npartitions, freq, closed, label):
  2433. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2434. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2435. df = pd.Series(range(len(index)), index=index)
  2436. ds = dd.from_pandas(df, npartitions=npartitions)
  2437. # Series output
  2438. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2439.  
  2440. dask/dataframe/tseries/tests/test_resample.py:23:
  2441. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2442. dask/dataframe/core.py:982: in resample
  2443. return _resample(self, rule, how=how, closed=closed, label=label)
  2444. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2445.  
  2446. 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'))>
  2447. rule = 'h', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  2448. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f144400>
  2449.  
  2450. def _resample(obj, rule, how, **kwargs):
  2451. resampler = Resampler(obj, rule, **kwargs)
  2452. if how is not None:
  2453. raise FutureWarning(("how in .resample() is deprecated "
  2454. "the new syntax is .resample(...)"
  2455. > ".{0}()").format(how))
  2456. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2457.  
  2458. dask/dataframe/tseries/resample.py:28: FutureWarning
  2459. ____________________________________ test_series_resample[count-5-d-right-right] _____________________________________
  2460.  
  2461. method = 'count', npartitions = 5, freq = 'd', closed = 'right', label = 'right'
  2462.  
  2463. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2464. list(product(['count', 'mean', 'ohlc'],
  2465. [2, 5],
  2466. ['30T', 'h', 'd', 'w', 'M'],
  2467. ['right', 'left'],
  2468. ['right', 'left'])))
  2469. def test_series_resample(method, npartitions, freq, closed, label):
  2470. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2471. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2472. df = pd.Series(range(len(index)), index=index)
  2473. ds = dd.from_pandas(df, npartitions=npartitions)
  2474. # Series output
  2475. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2476.  
  2477. dask/dataframe/tseries/tests/test_resample.py:23:
  2478. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2479. dask/dataframe/core.py:982: in resample
  2480. return _resample(self, rule, how=how, closed=closed, label=label)
  2481. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2482.  
  2483. 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'))>
  2484. rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  2485. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62b8068208>
  2486.  
  2487. def _resample(obj, rule, how, **kwargs):
  2488. resampler = Resampler(obj, rule, **kwargs)
  2489. if how is not None:
  2490. raise FutureWarning(("how in .resample() is deprecated "
  2491. "the new syntax is .resample(...)"
  2492. > ".{0}()").format(how))
  2493. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2494.  
  2495. dask/dataframe/tseries/resample.py:28: FutureWarning
  2496. _____________________________________ test_series_resample[count-5-d-right-left] _____________________________________
  2497.  
  2498. method = 'count', npartitions = 5, freq = 'd', closed = 'right', label = 'left'
  2499.  
  2500. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2501. list(product(['count', 'mean', 'ohlc'],
  2502. [2, 5],
  2503. ['30T', 'h', 'd', 'w', 'M'],
  2504. ['right', 'left'],
  2505. ['right', 'left'])))
  2506. def test_series_resample(method, npartitions, freq, closed, label):
  2507. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2508. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2509. df = pd.Series(range(len(index)), index=index)
  2510. ds = dd.from_pandas(df, npartitions=npartitions)
  2511. # Series output
  2512. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2513.  
  2514. dask/dataframe/tseries/tests/test_resample.py:23:
  2515. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2516. dask/dataframe/core.py:982: in resample
  2517. return _resample(self, rule, how=how, closed=closed, label=label)
  2518. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2519.  
  2520. 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'))>
  2521. rule = 'd', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  2522. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f442a58>
  2523.  
  2524. def _resample(obj, rule, how, **kwargs):
  2525. resampler = Resampler(obj, rule, **kwargs)
  2526. if how is not None:
  2527. raise FutureWarning(("how in .resample() is deprecated "
  2528. "the new syntax is .resample(...)"
  2529. > ".{0}()").format(how))
  2530. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2531.  
  2532. dask/dataframe/tseries/resample.py:28: FutureWarning
  2533. _____________________________________ test_series_resample[count-5-d-left-right] _____________________________________
  2534.  
  2535. method = 'count', npartitions = 5, freq = 'd', closed = 'left', label = 'right'
  2536.  
  2537. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2538. list(product(['count', 'mean', 'ohlc'],
  2539. [2, 5],
  2540. ['30T', 'h', 'd', 'w', 'M'],
  2541. ['right', 'left'],
  2542. ['right', 'left'])))
  2543. def test_series_resample(method, npartitions, freq, closed, label):
  2544. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2545. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2546. df = pd.Series(range(len(index)), index=index)
  2547. ds = dd.from_pandas(df, npartitions=npartitions)
  2548. # Series output
  2549. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2550.  
  2551. dask/dataframe/tseries/tests/test_resample.py:23:
  2552. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2553. dask/dataframe/core.py:982: in resample
  2554. return _resample(self, rule, how=how, closed=closed, label=label)
  2555. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2556.  
  2557. 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'))>
  2558. rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  2559. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e47b8>
  2560.  
  2561. def _resample(obj, rule, how, **kwargs):
  2562. resampler = Resampler(obj, rule, **kwargs)
  2563. if how is not None:
  2564. raise FutureWarning(("how in .resample() is deprecated "
  2565. "the new syntax is .resample(...)"
  2566. > ".{0}()").format(how))
  2567. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2568.  
  2569. dask/dataframe/tseries/resample.py:28: FutureWarning
  2570. _____________________________________ test_series_resample[count-5-d-left-left] ______________________________________
  2571.  
  2572. method = 'count', npartitions = 5, freq = 'd', closed = 'left', label = 'left'
  2573.  
  2574. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2575. list(product(['count', 'mean', 'ohlc'],
  2576. [2, 5],
  2577. ['30T', 'h', 'd', 'w', 'M'],
  2578. ['right', 'left'],
  2579. ['right', 'left'])))
  2580. def test_series_resample(method, npartitions, freq, closed, label):
  2581. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2582. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2583. df = pd.Series(range(len(index)), index=index)
  2584. ds = dd.from_pandas(df, npartitions=npartitions)
  2585. # Series output
  2586. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2587.  
  2588. dask/dataframe/tseries/tests/test_resample.py:23:
  2589. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2590. dask/dataframe/core.py:982: in resample
  2591. return _resample(self, rule, how=how, closed=closed, label=label)
  2592. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2593.  
  2594. 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'))>
  2595. rule = 'd', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  2596. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16a6d8>
  2597.  
  2598. def _resample(obj, rule, how, **kwargs):
  2599. resampler = Resampler(obj, rule, **kwargs)
  2600. if how is not None:
  2601. raise FutureWarning(("how in .resample() is deprecated "
  2602. "the new syntax is .resample(...)"
  2603. > ".{0}()").format(how))
  2604. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2605.  
  2606. dask/dataframe/tseries/resample.py:28: FutureWarning
  2607. ____________________________________ test_series_resample[count-5-w-right-right] _____________________________________
  2608.  
  2609. method = 'count', npartitions = 5, freq = 'w', closed = 'right', label = 'right'
  2610.  
  2611. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2612. list(product(['count', 'mean', 'ohlc'],
  2613. [2, 5],
  2614. ['30T', 'h', 'd', 'w', 'M'],
  2615. ['right', 'left'],
  2616. ['right', 'left'])))
  2617. def test_series_resample(method, npartitions, freq, closed, label):
  2618. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2619. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2620. df = pd.Series(range(len(index)), index=index)
  2621. ds = dd.from_pandas(df, npartitions=npartitions)
  2622. # Series output
  2623. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2624.  
  2625. dask/dataframe/tseries/tests/test_resample.py:23:
  2626. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2627. dask/dataframe/core.py:982: in resample
  2628. return _resample(self, rule, how=how, closed=closed, label=label)
  2629. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2630.  
  2631. 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'))>
  2632. rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  2633. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e87a2e8>
  2634.  
  2635. def _resample(obj, rule, how, **kwargs):
  2636. resampler = Resampler(obj, rule, **kwargs)
  2637. if how is not None:
  2638. raise FutureWarning(("how in .resample() is deprecated "
  2639. "the new syntax is .resample(...)"
  2640. > ".{0}()").format(how))
  2641. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2642.  
  2643. dask/dataframe/tseries/resample.py:28: FutureWarning
  2644. _____________________________________ test_series_resample[count-5-w-right-left] _____________________________________
  2645.  
  2646. method = 'count', npartitions = 5, freq = 'w', closed = 'right', label = 'left'
  2647.  
  2648. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2649. list(product(['count', 'mean', 'ohlc'],
  2650. [2, 5],
  2651. ['30T', 'h', 'd', 'w', 'M'],
  2652. ['right', 'left'],
  2653. ['right', 'left'])))
  2654. def test_series_resample(method, npartitions, freq, closed, label):
  2655. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2656. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2657. df = pd.Series(range(len(index)), index=index)
  2658. ds = dd.from_pandas(df, npartitions=npartitions)
  2659. # Series output
  2660. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2661.  
  2662. dask/dataframe/tseries/tests/test_resample.py:23:
  2663. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2664. dask/dataframe/core.py:982: in resample
  2665. return _resample(self, rule, how=how, closed=closed, label=label)
  2666. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2667.  
  2668. 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'))>
  2669. rule = 'w', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  2670. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e8f60>
  2671.  
  2672. def _resample(obj, rule, how, **kwargs):
  2673. resampler = Resampler(obj, rule, **kwargs)
  2674. if how is not None:
  2675. raise FutureWarning(("how in .resample() is deprecated "
  2676. "the new syntax is .resample(...)"
  2677. > ".{0}()").format(how))
  2678. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2679.  
  2680. dask/dataframe/tseries/resample.py:28: FutureWarning
  2681. _____________________________________ test_series_resample[count-5-w-left-right] _____________________________________
  2682.  
  2683. method = 'count', npartitions = 5, freq = 'w', closed = 'left', label = 'right'
  2684.  
  2685. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2686. list(product(['count', 'mean', 'ohlc'],
  2687. [2, 5],
  2688. ['30T', 'h', 'd', 'w', 'M'],
  2689. ['right', 'left'],
  2690. ['right', 'left'])))
  2691. def test_series_resample(method, npartitions, freq, closed, label):
  2692. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2693. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2694. df = pd.Series(range(len(index)), index=index)
  2695. ds = dd.from_pandas(df, npartitions=npartitions)
  2696. # Series output
  2697. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2698.  
  2699. dask/dataframe/tseries/tests/test_resample.py:23:
  2700. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2701. dask/dataframe/core.py:982: in resample
  2702. return _resample(self, rule, how=how, closed=closed, label=label)
  2703. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2704.  
  2705. 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'))>
  2706. rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  2707. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e16a0>
  2708.  
  2709. def _resample(obj, rule, how, **kwargs):
  2710. resampler = Resampler(obj, rule, **kwargs)
  2711. if how is not None:
  2712. raise FutureWarning(("how in .resample() is deprecated "
  2713. "the new syntax is .resample(...)"
  2714. > ".{0}()").format(how))
  2715. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2716.  
  2717. dask/dataframe/tseries/resample.py:28: FutureWarning
  2718. _____________________________________ test_series_resample[count-5-w-left-left] ______________________________________
  2719.  
  2720. method = 'count', npartitions = 5, freq = 'w', closed = 'left', label = 'left'
  2721.  
  2722. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2723. list(product(['count', 'mean', 'ohlc'],
  2724. [2, 5],
  2725. ['30T', 'h', 'd', 'w', 'M'],
  2726. ['right', 'left'],
  2727. ['right', 'left'])))
  2728. def test_series_resample(method, npartitions, freq, closed, label):
  2729. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2730. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2731. df = pd.Series(range(len(index)), index=index)
  2732. ds = dd.from_pandas(df, npartitions=npartitions)
  2733. # Series output
  2734. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2735.  
  2736. dask/dataframe/tseries/tests/test_resample.py:23:
  2737. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2738. dask/dataframe/core.py:982: in resample
  2739. return _resample(self, rule, how=how, closed=closed, label=label)
  2740. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2741.  
  2742. 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'))>
  2743. rule = 'w', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  2744. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c4c36a0>
  2745.  
  2746. def _resample(obj, rule, how, **kwargs):
  2747. resampler = Resampler(obj, rule, **kwargs)
  2748. if how is not None:
  2749. raise FutureWarning(("how in .resample() is deprecated "
  2750. "the new syntax is .resample(...)"
  2751. > ".{0}()").format(how))
  2752. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2753.  
  2754. dask/dataframe/tseries/resample.py:28: FutureWarning
  2755. ____________________________________ test_series_resample[count-5-M-right-right] _____________________________________
  2756.  
  2757. method = 'count', npartitions = 5, freq = 'M', closed = 'right', label = 'right'
  2758.  
  2759. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2760. list(product(['count', 'mean', 'ohlc'],
  2761. [2, 5],
  2762. ['30T', 'h', 'd', 'w', 'M'],
  2763. ['right', 'left'],
  2764. ['right', 'left'])))
  2765. def test_series_resample(method, npartitions, freq, closed, label):
  2766. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2767. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2768. df = pd.Series(range(len(index)), index=index)
  2769. ds = dd.from_pandas(df, npartitions=npartitions)
  2770. # Series output
  2771. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2772.  
  2773. dask/dataframe/tseries/tests/test_resample.py:23:
  2774. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2775. dask/dataframe/core.py:982: in resample
  2776. return _resample(self, rule, how=how, closed=closed, label=label)
  2777. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2778.  
  2779. 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'))>
  2780. rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'right'}
  2781. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3e6eb8>
  2782.  
  2783. def _resample(obj, rule, how, **kwargs):
  2784. resampler = Resampler(obj, rule, **kwargs)
  2785. if how is not None:
  2786. raise FutureWarning(("how in .resample() is deprecated "
  2787. "the new syntax is .resample(...)"
  2788. > ".{0}()").format(how))
  2789. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2790.  
  2791. dask/dataframe/tseries/resample.py:28: FutureWarning
  2792. _____________________________________ test_series_resample[count-5-M-right-left] _____________________________________
  2793.  
  2794. method = 'count', npartitions = 5, freq = 'M', closed = 'right', label = 'left'
  2795.  
  2796. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2797. list(product(['count', 'mean', 'ohlc'],
  2798. [2, 5],
  2799. ['30T', 'h', 'd', 'w', 'M'],
  2800. ['right', 'left'],
  2801. ['right', 'left'])))
  2802. def test_series_resample(method, npartitions, freq, closed, label):
  2803. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2804. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2805. df = pd.Series(range(len(index)), index=index)
  2806. ds = dd.from_pandas(df, npartitions=npartitions)
  2807. # Series output
  2808. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2809.  
  2810. dask/dataframe/tseries/tests/test_resample.py:23:
  2811. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2812. dask/dataframe/core.py:982: in resample
  2813. return _resample(self, rule, how=how, closed=closed, label=label)
  2814. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2815.  
  2816. 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'))>
  2817. rule = 'M', how = 'count', kwargs = {'closed': 'right', 'label': 'left'}
  2818. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f23edd8>
  2819.  
  2820. def _resample(obj, rule, how, **kwargs):
  2821. resampler = Resampler(obj, rule, **kwargs)
  2822. if how is not None:
  2823. raise FutureWarning(("how in .resample() is deprecated "
  2824. "the new syntax is .resample(...)"
  2825. > ".{0}()").format(how))
  2826. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2827.  
  2828. dask/dataframe/tseries/resample.py:28: FutureWarning
  2829. _____________________________________ test_series_resample[count-5-M-left-right] _____________________________________
  2830.  
  2831. method = 'count', npartitions = 5, freq = 'M', closed = 'left', label = 'right'
  2832.  
  2833. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2834. list(product(['count', 'mean', 'ohlc'],
  2835. [2, 5],
  2836. ['30T', 'h', 'd', 'w', 'M'],
  2837. ['right', 'left'],
  2838. ['right', 'left'])))
  2839. def test_series_resample(method, npartitions, freq, closed, label):
  2840. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2841. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2842. df = pd.Series(range(len(index)), index=index)
  2843. ds = dd.from_pandas(df, npartitions=npartitions)
  2844. # Series output
  2845. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2846.  
  2847. dask/dataframe/tseries/tests/test_resample.py:23:
  2848. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2849. dask/dataframe/core.py:982: in resample
  2850. return _resample(self, rule, how=how, closed=closed, label=label)
  2851. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2852.  
  2853. 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'))>
  2854. rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'right'}
  2855. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1155f8>
  2856.  
  2857. def _resample(obj, rule, how, **kwargs):
  2858. resampler = Resampler(obj, rule, **kwargs)
  2859. if how is not None:
  2860. raise FutureWarning(("how in .resample() is deprecated "
  2861. "the new syntax is .resample(...)"
  2862. > ".{0}()").format(how))
  2863. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2864.  
  2865. dask/dataframe/tseries/resample.py:28: FutureWarning
  2866. _____________________________________ test_series_resample[count-5-M-left-left] ______________________________________
  2867.  
  2868. method = 'count', npartitions = 5, freq = 'M', closed = 'left', label = 'left'
  2869.  
  2870. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2871. list(product(['count', 'mean', 'ohlc'],
  2872. [2, 5],
  2873. ['30T', 'h', 'd', 'w', 'M'],
  2874. ['right', 'left'],
  2875. ['right', 'left'])))
  2876. def test_series_resample(method, npartitions, freq, closed, label):
  2877. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2878. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2879. df = pd.Series(range(len(index)), index=index)
  2880. ds = dd.from_pandas(df, npartitions=npartitions)
  2881. # Series output
  2882. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2883.  
  2884. dask/dataframe/tseries/tests/test_resample.py:23:
  2885. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2886. dask/dataframe/core.py:982: in resample
  2887. return _resample(self, rule, how=how, closed=closed, label=label)
  2888. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2889.  
  2890. 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'))>
  2891. rule = 'M', how = 'count', kwargs = {'closed': 'left', 'label': 'left'}
  2892. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f181320>
  2893.  
  2894. def _resample(obj, rule, how, **kwargs):
  2895. resampler = Resampler(obj, rule, **kwargs)
  2896. if how is not None:
  2897. raise FutureWarning(("how in .resample() is deprecated "
  2898. "the new syntax is .resample(...)"
  2899. > ".{0}()").format(how))
  2900. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).count()
  2901.  
  2902. dask/dataframe/tseries/resample.py:28: FutureWarning
  2903. ____________________________________ test_series_resample[mean-2-30T-right-right] ____________________________________
  2904.  
  2905. method = 'mean', npartitions = 2, freq = '30T', closed = 'right', label = 'right'
  2906.  
  2907. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2908. list(product(['count', 'mean', 'ohlc'],
  2909. [2, 5],
  2910. ['30T', 'h', 'd', 'w', 'M'],
  2911. ['right', 'left'],
  2912. ['right', 'left'])))
  2913. def test_series_resample(method, npartitions, freq, closed, label):
  2914. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2915. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2916. df = pd.Series(range(len(index)), index=index)
  2917. ds = dd.from_pandas(df, npartitions=npartitions)
  2918. # Series output
  2919. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2920.  
  2921. dask/dataframe/tseries/tests/test_resample.py:23:
  2922. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2923. dask/dataframe/core.py:982: in resample
  2924. return _resample(self, rule, how=how, closed=closed, label=label)
  2925. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2926.  
  2927. 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'))>
  2928. rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  2929. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e838e80>
  2930.  
  2931. def _resample(obj, rule, how, **kwargs):
  2932. resampler = Resampler(obj, rule, **kwargs)
  2933. if how is not None:
  2934. raise FutureWarning(("how in .resample() is deprecated "
  2935. "the new syntax is .resample(...)"
  2936. > ".{0}()").format(how))
  2937. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  2938.  
  2939. dask/dataframe/tseries/resample.py:28: FutureWarning
  2940. ____________________________________ test_series_resample[mean-2-30T-right-left] _____________________________________
  2941.  
  2942. method = 'mean', npartitions = 2, freq = '30T', closed = 'right', label = 'left'
  2943.  
  2944. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2945. list(product(['count', 'mean', 'ohlc'],
  2946. [2, 5],
  2947. ['30T', 'h', 'd', 'w', 'M'],
  2948. ['right', 'left'],
  2949. ['right', 'left'])))
  2950. def test_series_resample(method, npartitions, freq, closed, label):
  2951. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2952. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2953. df = pd.Series(range(len(index)), index=index)
  2954. ds = dd.from_pandas(df, npartitions=npartitions)
  2955. # Series output
  2956. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2957.  
  2958. dask/dataframe/tseries/tests/test_resample.py:23:
  2959. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2960. dask/dataframe/core.py:982: in resample
  2961. return _resample(self, rule, how=how, closed=closed, label=label)
  2962. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2963.  
  2964. 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'))>
  2965. rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  2966. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4239e8>
  2967.  
  2968. def _resample(obj, rule, how, **kwargs):
  2969. resampler = Resampler(obj, rule, **kwargs)
  2970. if how is not None:
  2971. raise FutureWarning(("how in .resample() is deprecated "
  2972. "the new syntax is .resample(...)"
  2973. > ".{0}()").format(how))
  2974. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  2975.  
  2976. dask/dataframe/tseries/resample.py:28: FutureWarning
  2977. ____________________________________ test_series_resample[mean-2-30T-left-right] _____________________________________
  2978.  
  2979. method = 'mean', npartitions = 2, freq = '30T', closed = 'left', label = 'right'
  2980.  
  2981. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  2982. list(product(['count', 'mean', 'ohlc'],
  2983. [2, 5],
  2984. ['30T', 'h', 'd', 'w', 'M'],
  2985. ['right', 'left'],
  2986. ['right', 'left'])))
  2987. def test_series_resample(method, npartitions, freq, closed, label):
  2988. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  2989. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  2990. df = pd.Series(range(len(index)), index=index)
  2991. ds = dd.from_pandas(df, npartitions=npartitions)
  2992. # Series output
  2993. > result = ds.resample(freq, how=method, closed=closed, label=label)
  2994.  
  2995. dask/dataframe/tseries/tests/test_resample.py:23:
  2996. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  2997. dask/dataframe/core.py:982: in resample
  2998. return _resample(self, rule, how=how, closed=closed, label=label)
  2999. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3000.  
  3001. 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'))>
  3002. rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  3003. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f14c780>
  3004.  
  3005. def _resample(obj, rule, how, **kwargs):
  3006. resampler = Resampler(obj, rule, **kwargs)
  3007. if how is not None:
  3008. raise FutureWarning(("how in .resample() is deprecated "
  3009. "the new syntax is .resample(...)"
  3010. > ".{0}()").format(how))
  3011. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3012.  
  3013. dask/dataframe/tseries/resample.py:28: FutureWarning
  3014. _____________________________________ test_series_resample[mean-2-30T-left-left] _____________________________________
  3015.  
  3016. method = 'mean', npartitions = 2, freq = '30T', closed = 'left', label = 'left'
  3017.  
  3018. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3019. list(product(['count', 'mean', 'ohlc'],
  3020. [2, 5],
  3021. ['30T', 'h', 'd', 'w', 'M'],
  3022. ['right', 'left'],
  3023. ['right', 'left'])))
  3024. def test_series_resample(method, npartitions, freq, closed, label):
  3025. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3026. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3027. df = pd.Series(range(len(index)), index=index)
  3028. ds = dd.from_pandas(df, npartitions=npartitions)
  3029. # Series output
  3030. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3031.  
  3032. dask/dataframe/tseries/tests/test_resample.py:23:
  3033. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3034. dask/dataframe/core.py:982: in resample
  3035. return _resample(self, rule, how=how, closed=closed, label=label)
  3036. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3037.  
  3038. 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'))>
  3039. rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  3040. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f135390>
  3041.  
  3042. def _resample(obj, rule, how, **kwargs):
  3043. resampler = Resampler(obj, rule, **kwargs)
  3044. if how is not None:
  3045. raise FutureWarning(("how in .resample() is deprecated "
  3046. "the new syntax is .resample(...)"
  3047. > ".{0}()").format(how))
  3048. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3049.  
  3050. dask/dataframe/tseries/resample.py:28: FutureWarning
  3051. _____________________________________ test_series_resample[mean-2-h-right-right] _____________________________________
  3052.  
  3053. method = 'mean', npartitions = 2, freq = 'h', closed = 'right', label = 'right'
  3054.  
  3055. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3056. list(product(['count', 'mean', 'ohlc'],
  3057. [2, 5],
  3058. ['30T', 'h', 'd', 'w', 'M'],
  3059. ['right', 'left'],
  3060. ['right', 'left'])))
  3061. def test_series_resample(method, npartitions, freq, closed, label):
  3062. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3063. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3064. df = pd.Series(range(len(index)), index=index)
  3065. ds = dd.from_pandas(df, npartitions=npartitions)
  3066. # Series output
  3067. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3068.  
  3069. dask/dataframe/tseries/tests/test_resample.py:23:
  3070. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3071. dask/dataframe/core.py:982: in resample
  3072. return _resample(self, rule, how=how, closed=closed, label=label)
  3073. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3074.  
  3075. 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'))>
  3076. rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  3077. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f225978>
  3078.  
  3079. def _resample(obj, rule, how, **kwargs):
  3080. resampler = Resampler(obj, rule, **kwargs)
  3081. if how is not None:
  3082. raise FutureWarning(("how in .resample() is deprecated "
  3083. "the new syntax is .resample(...)"
  3084. > ".{0}()").format(how))
  3085. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3086.  
  3087. dask/dataframe/tseries/resample.py:28: FutureWarning
  3088. _____________________________________ test_series_resample[mean-2-h-right-left] ______________________________________
  3089.  
  3090. method = 'mean', npartitions = 2, freq = 'h', closed = 'right', label = 'left'
  3091.  
  3092. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3093. list(product(['count', 'mean', 'ohlc'],
  3094. [2, 5],
  3095. ['30T', 'h', 'd', 'w', 'M'],
  3096. ['right', 'left'],
  3097. ['right', 'left'])))
  3098. def test_series_resample(method, npartitions, freq, closed, label):
  3099. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3100. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3101. df = pd.Series(range(len(index)), index=index)
  3102. ds = dd.from_pandas(df, npartitions=npartitions)
  3103. # Series output
  3104. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3105.  
  3106. dask/dataframe/tseries/tests/test_resample.py:23:
  3107. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3108. dask/dataframe/core.py:982: in resample
  3109. return _resample(self, rule, how=how, closed=closed, label=label)
  3110. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3111.  
  3112. 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'))>
  3113. rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  3114. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f138160>
  3115.  
  3116. def _resample(obj, rule, how, **kwargs):
  3117. resampler = Resampler(obj, rule, **kwargs)
  3118. if how is not None:
  3119. raise FutureWarning(("how in .resample() is deprecated "
  3120. "the new syntax is .resample(...)"
  3121. > ".{0}()").format(how))
  3122. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3123.  
  3124. dask/dataframe/tseries/resample.py:28: FutureWarning
  3125. _____________________________________ test_series_resample[mean-2-h-left-right] ______________________________________
  3126.  
  3127. method = 'mean', npartitions = 2, freq = 'h', closed = 'left', label = 'right'
  3128.  
  3129. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3130. list(product(['count', 'mean', 'ohlc'],
  3131. [2, 5],
  3132. ['30T', 'h', 'd', 'w', 'M'],
  3133. ['right', 'left'],
  3134. ['right', 'left'])))
  3135. def test_series_resample(method, npartitions, freq, closed, label):
  3136. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3137. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3138. df = pd.Series(range(len(index)), index=index)
  3139. ds = dd.from_pandas(df, npartitions=npartitions)
  3140. # Series output
  3141. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3142.  
  3143. dask/dataframe/tseries/tests/test_resample.py:23:
  3144. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3145. dask/dataframe/core.py:982: in resample
  3146. return _resample(self, rule, how=how, closed=closed, label=label)
  3147. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3148.  
  3149. 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'))>
  3150. rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  3151. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f21da20>
  3152.  
  3153. def _resample(obj, rule, how, **kwargs):
  3154. resampler = Resampler(obj, rule, **kwargs)
  3155. if how is not None:
  3156. raise FutureWarning(("how in .resample() is deprecated "
  3157. "the new syntax is .resample(...)"
  3158. > ".{0}()").format(how))
  3159. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3160.  
  3161. dask/dataframe/tseries/resample.py:28: FutureWarning
  3162. ______________________________________ test_series_resample[mean-2-h-left-left] ______________________________________
  3163.  
  3164. method = 'mean', npartitions = 2, freq = 'h', closed = 'left', label = 'left'
  3165.  
  3166. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3167. list(product(['count', 'mean', 'ohlc'],
  3168. [2, 5],
  3169. ['30T', 'h', 'd', 'w', 'M'],
  3170. ['right', 'left'],
  3171. ['right', 'left'])))
  3172. def test_series_resample(method, npartitions, freq, closed, label):
  3173. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3174. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3175. df = pd.Series(range(len(index)), index=index)
  3176. ds = dd.from_pandas(df, npartitions=npartitions)
  3177. # Series output
  3178. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3179.  
  3180. dask/dataframe/tseries/tests/test_resample.py:23:
  3181. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3182. dask/dataframe/core.py:982: in resample
  3183. return _resample(self, rule, how=how, closed=closed, label=label)
  3184. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3185.  
  3186. 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'))>
  3187. rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  3188. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3eb208>
  3189.  
  3190. def _resample(obj, rule, how, **kwargs):
  3191. resampler = Resampler(obj, rule, **kwargs)
  3192. if how is not None:
  3193. raise FutureWarning(("how in .resample() is deprecated "
  3194. "the new syntax is .resample(...)"
  3195. > ".{0}()").format(how))
  3196. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3197.  
  3198. dask/dataframe/tseries/resample.py:28: FutureWarning
  3199. _____________________________________ test_series_resample[mean-2-d-right-right] _____________________________________
  3200.  
  3201. method = 'mean', npartitions = 2, freq = 'd', closed = 'right', label = 'right'
  3202.  
  3203. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3204. list(product(['count', 'mean', 'ohlc'],
  3205. [2, 5],
  3206. ['30T', 'h', 'd', 'w', 'M'],
  3207. ['right', 'left'],
  3208. ['right', 'left'])))
  3209. def test_series_resample(method, npartitions, freq, closed, label):
  3210. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3211. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3212. df = pd.Series(range(len(index)), index=index)
  3213. ds = dd.from_pandas(df, npartitions=npartitions)
  3214. # Series output
  3215. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3216.  
  3217. dask/dataframe/tseries/tests/test_resample.py:23:
  3218. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3219. dask/dataframe/core.py:982: in resample
  3220. return _resample(self, rule, how=how, closed=closed, label=label)
  3221. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3222.  
  3223. 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'))>
  3224. rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  3225. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f21ed68>
  3226.  
  3227. def _resample(obj, rule, how, **kwargs):
  3228. resampler = Resampler(obj, rule, **kwargs)
  3229. if how is not None:
  3230. raise FutureWarning(("how in .resample() is deprecated "
  3231. "the new syntax is .resample(...)"
  3232. > ".{0}()").format(how))
  3233. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3234.  
  3235. dask/dataframe/tseries/resample.py:28: FutureWarning
  3236. _____________________________________ test_series_resample[mean-2-d-right-left] ______________________________________
  3237.  
  3238. method = 'mean', npartitions = 2, freq = 'd', closed = 'right', label = 'left'
  3239.  
  3240. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3241. list(product(['count', 'mean', 'ohlc'],
  3242. [2, 5],
  3243. ['30T', 'h', 'd', 'w', 'M'],
  3244. ['right', 'left'],
  3245. ['right', 'left'])))
  3246. def test_series_resample(method, npartitions, freq, closed, label):
  3247. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3248. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3249. df = pd.Series(range(len(index)), index=index)
  3250. ds = dd.from_pandas(df, npartitions=npartitions)
  3251. # Series output
  3252. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3253.  
  3254. dask/dataframe/tseries/tests/test_resample.py:23:
  3255. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3256. dask/dataframe/core.py:982: in resample
  3257. return _resample(self, rule, how=how, closed=closed, label=label)
  3258. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3259.  
  3260. 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'))>
  3261. rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  3262. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16d3c8>
  3263.  
  3264. def _resample(obj, rule, how, **kwargs):
  3265. resampler = Resampler(obj, rule, **kwargs)
  3266. if how is not None:
  3267. raise FutureWarning(("how in .resample() is deprecated "
  3268. "the new syntax is .resample(...)"
  3269. > ".{0}()").format(how))
  3270. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3271.  
  3272. dask/dataframe/tseries/resample.py:28: FutureWarning
  3273. _____________________________________ test_series_resample[mean-2-d-left-right] ______________________________________
  3274.  
  3275. method = 'mean', npartitions = 2, freq = 'd', closed = 'left', label = 'right'
  3276.  
  3277. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3278. list(product(['count', 'mean', 'ohlc'],
  3279. [2, 5],
  3280. ['30T', 'h', 'd', 'w', 'M'],
  3281. ['right', 'left'],
  3282. ['right', 'left'])))
  3283. def test_series_resample(method, npartitions, freq, closed, label):
  3284. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3285. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3286. df = pd.Series(range(len(index)), index=index)
  3287. ds = dd.from_pandas(df, npartitions=npartitions)
  3288. # Series output
  3289. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3290.  
  3291. dask/dataframe/tseries/tests/test_resample.py:23:
  3292. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3293. dask/dataframe/core.py:982: in resample
  3294. return _resample(self, rule, how=how, closed=closed, label=label)
  3295. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3296.  
  3297. 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'))>
  3298. rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  3299. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f24e8d0>
  3300.  
  3301. def _resample(obj, rule, how, **kwargs):
  3302. resampler = Resampler(obj, rule, **kwargs)
  3303. if how is not None:
  3304. raise FutureWarning(("how in .resample() is deprecated "
  3305. "the new syntax is .resample(...)"
  3306. > ".{0}()").format(how))
  3307. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3308.  
  3309. dask/dataframe/tseries/resample.py:28: FutureWarning
  3310. ______________________________________ test_series_resample[mean-2-d-left-left] ______________________________________
  3311.  
  3312. method = 'mean', npartitions = 2, freq = 'd', closed = 'left', label = 'left'
  3313.  
  3314. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3315. list(product(['count', 'mean', 'ohlc'],
  3316. [2, 5],
  3317. ['30T', 'h', 'd', 'w', 'M'],
  3318. ['right', 'left'],
  3319. ['right', 'left'])))
  3320. def test_series_resample(method, npartitions, freq, closed, label):
  3321. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3322. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3323. df = pd.Series(range(len(index)), index=index)
  3324. ds = dd.from_pandas(df, npartitions=npartitions)
  3325. # Series output
  3326. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3327.  
  3328. dask/dataframe/tseries/tests/test_resample.py:23:
  3329. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3330. dask/dataframe/core.py:982: in resample
  3331. return _resample(self, rule, how=how, closed=closed, label=label)
  3332. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3333.  
  3334. 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'))>
  3335. rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  3336. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f42b2b0>
  3337.  
  3338. def _resample(obj, rule, how, **kwargs):
  3339. resampler = Resampler(obj, rule, **kwargs)
  3340. if how is not None:
  3341. raise FutureWarning(("how in .resample() is deprecated "
  3342. "the new syntax is .resample(...)"
  3343. > ".{0}()").format(how))
  3344. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3345.  
  3346. dask/dataframe/tseries/resample.py:28: FutureWarning
  3347. _____________________________________ test_series_resample[mean-2-w-right-right] _____________________________________
  3348.  
  3349. method = 'mean', npartitions = 2, freq = 'w', closed = 'right', label = 'right'
  3350.  
  3351. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3352. list(product(['count', 'mean', 'ohlc'],
  3353. [2, 5],
  3354. ['30T', 'h', 'd', 'w', 'M'],
  3355. ['right', 'left'],
  3356. ['right', 'left'])))
  3357. def test_series_resample(method, npartitions, freq, closed, label):
  3358. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3359. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3360. df = pd.Series(range(len(index)), index=index)
  3361. ds = dd.from_pandas(df, npartitions=npartitions)
  3362. # Series output
  3363. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3364.  
  3365. dask/dataframe/tseries/tests/test_resample.py:23:
  3366. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3367. dask/dataframe/core.py:982: in resample
  3368. return _resample(self, rule, how=how, closed=closed, label=label)
  3369. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3370.  
  3371. 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'))>
  3372. rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  3373. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0f8e80>
  3374.  
  3375. def _resample(obj, rule, how, **kwargs):
  3376. resampler = Resampler(obj, rule, **kwargs)
  3377. if how is not None:
  3378. raise FutureWarning(("how in .resample() is deprecated "
  3379. "the new syntax is .resample(...)"
  3380. > ".{0}()").format(how))
  3381. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3382.  
  3383. dask/dataframe/tseries/resample.py:28: FutureWarning
  3384. _____________________________________ test_series_resample[mean-2-w-right-left] ______________________________________
  3385.  
  3386. method = 'mean', npartitions = 2, freq = 'w', closed = 'right', label = 'left'
  3387.  
  3388. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3389. list(product(['count', 'mean', 'ohlc'],
  3390. [2, 5],
  3391. ['30T', 'h', 'd', 'w', 'M'],
  3392. ['right', 'left'],
  3393. ['right', 'left'])))
  3394. def test_series_resample(method, npartitions, freq, closed, label):
  3395. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3396. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3397. df = pd.Series(range(len(index)), index=index)
  3398. ds = dd.from_pandas(df, npartitions=npartitions)
  3399. # Series output
  3400. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3401.  
  3402. dask/dataframe/tseries/tests/test_resample.py:23:
  3403. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3404. dask/dataframe/core.py:982: in resample
  3405. return _resample(self, rule, how=how, closed=closed, label=label)
  3406. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3407.  
  3408. 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'))>
  3409. rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  3410. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1249b0>
  3411.  
  3412. def _resample(obj, rule, how, **kwargs):
  3413. resampler = Resampler(obj, rule, **kwargs)
  3414. if how is not None:
  3415. raise FutureWarning(("how in .resample() is deprecated "
  3416. "the new syntax is .resample(...)"
  3417. > ".{0}()").format(how))
  3418. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3419.  
  3420. dask/dataframe/tseries/resample.py:28: FutureWarning
  3421. _____________________________________ test_series_resample[mean-2-w-left-right] ______________________________________
  3422.  
  3423. method = 'mean', npartitions = 2, freq = 'w', closed = 'left', label = 'right'
  3424.  
  3425. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3426. list(product(['count', 'mean', 'ohlc'],
  3427. [2, 5],
  3428. ['30T', 'h', 'd', 'w', 'M'],
  3429. ['right', 'left'],
  3430. ['right', 'left'])))
  3431. def test_series_resample(method, npartitions, freq, closed, label):
  3432. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3433. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3434. df = pd.Series(range(len(index)), index=index)
  3435. ds = dd.from_pandas(df, npartitions=npartitions)
  3436. # Series output
  3437. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3438.  
  3439. dask/dataframe/tseries/tests/test_resample.py:23:
  3440. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3441. dask/dataframe/core.py:982: in resample
  3442. return _resample(self, rule, how=how, closed=closed, label=label)
  3443. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3444.  
  3445. 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'))>
  3446. rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  3447. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e9d8668>
  3448.  
  3449. def _resample(obj, rule, how, **kwargs):
  3450. resampler = Resampler(obj, rule, **kwargs)
  3451. if how is not None:
  3452. raise FutureWarning(("how in .resample() is deprecated "
  3453. "the new syntax is .resample(...)"
  3454. > ".{0}()").format(how))
  3455. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3456.  
  3457. dask/dataframe/tseries/resample.py:28: FutureWarning
  3458. ______________________________________ test_series_resample[mean-2-w-left-left] ______________________________________
  3459.  
  3460. method = 'mean', npartitions = 2, freq = 'w', closed = 'left', label = 'left'
  3461.  
  3462. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3463. list(product(['count', 'mean', 'ohlc'],
  3464. [2, 5],
  3465. ['30T', 'h', 'd', 'w', 'M'],
  3466. ['right', 'left'],
  3467. ['right', 'left'])))
  3468. def test_series_resample(method, npartitions, freq, closed, label):
  3469. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3470. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3471. df = pd.Series(range(len(index)), index=index)
  3472. ds = dd.from_pandas(df, npartitions=npartitions)
  3473. # Series output
  3474. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3475.  
  3476. dask/dataframe/tseries/tests/test_resample.py:23:
  3477. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3478. dask/dataframe/core.py:982: in resample
  3479. return _resample(self, rule, how=how, closed=closed, label=label)
  3480. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3481.  
  3482. 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'))>
  3483. rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  3484. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62d005da90>
  3485.  
  3486. def _resample(obj, rule, how, **kwargs):
  3487. resampler = Resampler(obj, rule, **kwargs)
  3488. if how is not None:
  3489. raise FutureWarning(("how in .resample() is deprecated "
  3490. "the new syntax is .resample(...)"
  3491. > ".{0}()").format(how))
  3492. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3493.  
  3494. dask/dataframe/tseries/resample.py:28: FutureWarning
  3495. _____________________________________ test_series_resample[mean-2-M-right-right] _____________________________________
  3496.  
  3497. method = 'mean', npartitions = 2, freq = 'M', closed = 'right', label = 'right'
  3498.  
  3499. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3500. list(product(['count', 'mean', 'ohlc'],
  3501. [2, 5],
  3502. ['30T', 'h', 'd', 'w', 'M'],
  3503. ['right', 'left'],
  3504. ['right', 'left'])))
  3505. def test_series_resample(method, npartitions, freq, closed, label):
  3506. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3507. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3508. df = pd.Series(range(len(index)), index=index)
  3509. ds = dd.from_pandas(df, npartitions=npartitions)
  3510. # Series output
  3511. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3512.  
  3513. dask/dataframe/tseries/tests/test_resample.py:23:
  3514. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3515. dask/dataframe/core.py:982: in resample
  3516. return _resample(self, rule, how=how, closed=closed, label=label)
  3517. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3518.  
  3519. 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'))>
  3520. rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  3521. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f114518>
  3522.  
  3523. def _resample(obj, rule, how, **kwargs):
  3524. resampler = Resampler(obj, rule, **kwargs)
  3525. if how is not None:
  3526. raise FutureWarning(("how in .resample() is deprecated "
  3527. "the new syntax is .resample(...)"
  3528. > ".{0}()").format(how))
  3529. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3530.  
  3531. dask/dataframe/tseries/resample.py:28: FutureWarning
  3532. _____________________________________ test_series_resample[mean-2-M-right-left] ______________________________________
  3533.  
  3534. method = 'mean', npartitions = 2, freq = 'M', closed = 'right', label = 'left'
  3535.  
  3536. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3537. list(product(['count', 'mean', 'ohlc'],
  3538. [2, 5],
  3539. ['30T', 'h', 'd', 'w', 'M'],
  3540. ['right', 'left'],
  3541. ['right', 'left'])))
  3542. def test_series_resample(method, npartitions, freq, closed, label):
  3543. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3544. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3545. df = pd.Series(range(len(index)), index=index)
  3546. ds = dd.from_pandas(df, npartitions=npartitions)
  3547. # Series output
  3548. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3549.  
  3550. dask/dataframe/tseries/tests/test_resample.py:23:
  3551. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3552. dask/dataframe/core.py:982: in resample
  3553. return _resample(self, rule, how=how, closed=closed, label=label)
  3554. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3555.  
  3556. 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'))>
  3557. rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  3558. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3e90f0>
  3559.  
  3560. def _resample(obj, rule, how, **kwargs):
  3561. resampler = Resampler(obj, rule, **kwargs)
  3562. if how is not None:
  3563. raise FutureWarning(("how in .resample() is deprecated "
  3564. "the new syntax is .resample(...)"
  3565. > ".{0}()").format(how))
  3566. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3567.  
  3568. dask/dataframe/tseries/resample.py:28: FutureWarning
  3569. _____________________________________ test_series_resample[mean-2-M-left-right] ______________________________________
  3570.  
  3571. method = 'mean', npartitions = 2, freq = 'M', closed = 'left', label = 'right'
  3572.  
  3573. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3574. list(product(['count', 'mean', 'ohlc'],
  3575. [2, 5],
  3576. ['30T', 'h', 'd', 'w', 'M'],
  3577. ['right', 'left'],
  3578. ['right', 'left'])))
  3579. def test_series_resample(method, npartitions, freq, closed, label):
  3580. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3581. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3582. df = pd.Series(range(len(index)), index=index)
  3583. ds = dd.from_pandas(df, npartitions=npartitions)
  3584. # Series output
  3585. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3586.  
  3587. dask/dataframe/tseries/tests/test_resample.py:23:
  3588. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3589. dask/dataframe/core.py:982: in resample
  3590. return _resample(self, rule, how=how, closed=closed, label=label)
  3591. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3592.  
  3593. 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'))>
  3594. rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  3595. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f10c780>
  3596.  
  3597. def _resample(obj, rule, how, **kwargs):
  3598. resampler = Resampler(obj, rule, **kwargs)
  3599. if how is not None:
  3600. raise FutureWarning(("how in .resample() is deprecated "
  3601. "the new syntax is .resample(...)"
  3602. > ".{0}()").format(how))
  3603. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3604.  
  3605. dask/dataframe/tseries/resample.py:28: FutureWarning
  3606. ______________________________________ test_series_resample[mean-2-M-left-left] ______________________________________
  3607.  
  3608. method = 'mean', npartitions = 2, freq = 'M', closed = 'left', label = 'left'
  3609.  
  3610. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3611. list(product(['count', 'mean', 'ohlc'],
  3612. [2, 5],
  3613. ['30T', 'h', 'd', 'w', 'M'],
  3614. ['right', 'left'],
  3615. ['right', 'left'])))
  3616. def test_series_resample(method, npartitions, freq, closed, label):
  3617. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3618. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3619. df = pd.Series(range(len(index)), index=index)
  3620. ds = dd.from_pandas(df, npartitions=npartitions)
  3621. # Series output
  3622. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3623.  
  3624. dask/dataframe/tseries/tests/test_resample.py:23:
  3625. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3626. dask/dataframe/core.py:982: in resample
  3627. return _resample(self, rule, how=how, closed=closed, label=label)
  3628. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3629.  
  3630. 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'))>
  3631. rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  3632. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f3e6710>
  3633.  
  3634. def _resample(obj, rule, how, **kwargs):
  3635. resampler = Resampler(obj, rule, **kwargs)
  3636. if how is not None:
  3637. raise FutureWarning(("how in .resample() is deprecated "
  3638. "the new syntax is .resample(...)"
  3639. > ".{0}()").format(how))
  3640. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3641.  
  3642. dask/dataframe/tseries/resample.py:28: FutureWarning
  3643. ____________________________________ test_series_resample[mean-5-30T-right-right] ____________________________________
  3644.  
  3645. method = 'mean', npartitions = 5, freq = '30T', closed = 'right', label = 'right'
  3646.  
  3647. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3648. list(product(['count', 'mean', 'ohlc'],
  3649. [2, 5],
  3650. ['30T', 'h', 'd', 'w', 'M'],
  3651. ['right', 'left'],
  3652. ['right', 'left'])))
  3653. def test_series_resample(method, npartitions, freq, closed, label):
  3654. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3655. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3656. df = pd.Series(range(len(index)), index=index)
  3657. ds = dd.from_pandas(df, npartitions=npartitions)
  3658. # Series output
  3659. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3660.  
  3661. dask/dataframe/tseries/tests/test_resample.py:23:
  3662. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3663. dask/dataframe/core.py:982: in resample
  3664. return _resample(self, rule, how=how, closed=closed, label=label)
  3665. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3666.  
  3667. 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'))>
  3668. rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  3669. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eb20ac8>
  3670.  
  3671. def _resample(obj, rule, how, **kwargs):
  3672. resampler = Resampler(obj, rule, **kwargs)
  3673. if how is not None:
  3674. raise FutureWarning(("how in .resample() is deprecated "
  3675. "the new syntax is .resample(...)"
  3676. > ".{0}()").format(how))
  3677. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3678.  
  3679. dask/dataframe/tseries/resample.py:28: FutureWarning
  3680. ____________________________________ test_series_resample[mean-5-30T-right-left] _____________________________________
  3681.  
  3682. method = 'mean', npartitions = 5, freq = '30T', closed = 'right', label = 'left'
  3683.  
  3684. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3685. list(product(['count', 'mean', 'ohlc'],
  3686. [2, 5],
  3687. ['30T', 'h', 'd', 'w', 'M'],
  3688. ['right', 'left'],
  3689. ['right', 'left'])))
  3690. def test_series_resample(method, npartitions, freq, closed, label):
  3691. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3692. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3693. df = pd.Series(range(len(index)), index=index)
  3694. ds = dd.from_pandas(df, npartitions=npartitions)
  3695. # Series output
  3696. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3697.  
  3698. dask/dataframe/tseries/tests/test_resample.py:23:
  3699. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3700. dask/dataframe/core.py:982: in resample
  3701. return _resample(self, rule, how=how, closed=closed, label=label)
  3702. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3703.  
  3704. 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'))>
  3705. rule = '30T', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  3706. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f19e0b8>
  3707.  
  3708. def _resample(obj, rule, how, **kwargs):
  3709. resampler = Resampler(obj, rule, **kwargs)
  3710. if how is not None:
  3711. raise FutureWarning(("how in .resample() is deprecated "
  3712. "the new syntax is .resample(...)"
  3713. > ".{0}()").format(how))
  3714. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3715.  
  3716. dask/dataframe/tseries/resample.py:28: FutureWarning
  3717. ____________________________________ test_series_resample[mean-5-30T-left-right] _____________________________________
  3718.  
  3719. method = 'mean', npartitions = 5, freq = '30T', closed = 'left', label = 'right'
  3720.  
  3721. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3722. list(product(['count', 'mean', 'ohlc'],
  3723. [2, 5],
  3724. ['30T', 'h', 'd', 'w', 'M'],
  3725. ['right', 'left'],
  3726. ['right', 'left'])))
  3727. def test_series_resample(method, npartitions, freq, closed, label):
  3728. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3729. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3730. df = pd.Series(range(len(index)), index=index)
  3731. ds = dd.from_pandas(df, npartitions=npartitions)
  3732. # Series output
  3733. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3734.  
  3735. dask/dataframe/tseries/tests/test_resample.py:23:
  3736. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3737. dask/dataframe/core.py:982: in resample
  3738. return _resample(self, rule, how=how, closed=closed, label=label)
  3739. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3740.  
  3741. 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'))>
  3742. rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  3743. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f11a860>
  3744.  
  3745. def _resample(obj, rule, how, **kwargs):
  3746. resampler = Resampler(obj, rule, **kwargs)
  3747. if how is not None:
  3748. raise FutureWarning(("how in .resample() is deprecated "
  3749. "the new syntax is .resample(...)"
  3750. > ".{0}()").format(how))
  3751. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3752.  
  3753. dask/dataframe/tseries/resample.py:28: FutureWarning
  3754. _____________________________________ test_series_resample[mean-5-30T-left-left] _____________________________________
  3755.  
  3756. method = 'mean', npartitions = 5, freq = '30T', closed = 'left', label = 'left'
  3757.  
  3758. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3759. list(product(['count', 'mean', 'ohlc'],
  3760. [2, 5],
  3761. ['30T', 'h', 'd', 'w', 'M'],
  3762. ['right', 'left'],
  3763. ['right', 'left'])))
  3764. def test_series_resample(method, npartitions, freq, closed, label):
  3765. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3766. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3767. df = pd.Series(range(len(index)), index=index)
  3768. ds = dd.from_pandas(df, npartitions=npartitions)
  3769. # Series output
  3770. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3771.  
  3772. dask/dataframe/tseries/tests/test_resample.py:23:
  3773. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3774. dask/dataframe/core.py:982: in resample
  3775. return _resample(self, rule, how=how, closed=closed, label=label)
  3776. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3777.  
  3778. 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'))>
  3779. rule = '30T', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  3780. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f17a278>
  3781.  
  3782. def _resample(obj, rule, how, **kwargs):
  3783. resampler = Resampler(obj, rule, **kwargs)
  3784. if how is not None:
  3785. raise FutureWarning(("how in .resample() is deprecated "
  3786. "the new syntax is .resample(...)"
  3787. > ".{0}()").format(how))
  3788. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3789.  
  3790. dask/dataframe/tseries/resample.py:28: FutureWarning
  3791. _____________________________________ test_series_resample[mean-5-h-right-right] _____________________________________
  3792.  
  3793. method = 'mean', npartitions = 5, freq = 'h', closed = 'right', label = 'right'
  3794.  
  3795. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3796. list(product(['count', 'mean', 'ohlc'],
  3797. [2, 5],
  3798. ['30T', 'h', 'd', 'w', 'M'],
  3799. ['right', 'left'],
  3800. ['right', 'left'])))
  3801. def test_series_resample(method, npartitions, freq, closed, label):
  3802. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3803. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3804. df = pd.Series(range(len(index)), index=index)
  3805. ds = dd.from_pandas(df, npartitions=npartitions)
  3806. # Series output
  3807. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3808.  
  3809. dask/dataframe/tseries/tests/test_resample.py:23:
  3810. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3811. dask/dataframe/core.py:982: in resample
  3812. return _resample(self, rule, how=how, closed=closed, label=label)
  3813. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3814.  
  3815. 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'))>
  3816. rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  3817. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629ea1f390>
  3818.  
  3819. def _resample(obj, rule, how, **kwargs):
  3820. resampler = Resampler(obj, rule, **kwargs)
  3821. if how is not None:
  3822. raise FutureWarning(("how in .resample() is deprecated "
  3823. "the new syntax is .resample(...)"
  3824. > ".{0}()").format(how))
  3825. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3826.  
  3827. dask/dataframe/tseries/resample.py:28: FutureWarning
  3828. _____________________________________ test_series_resample[mean-5-h-right-left] ______________________________________
  3829.  
  3830. method = 'mean', npartitions = 5, freq = 'h', closed = 'right', label = 'left'
  3831.  
  3832. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3833. list(product(['count', 'mean', 'ohlc'],
  3834. [2, 5],
  3835. ['30T', 'h', 'd', 'w', 'M'],
  3836. ['right', 'left'],
  3837. ['right', 'left'])))
  3838. def test_series_resample(method, npartitions, freq, closed, label):
  3839. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3840. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3841. df = pd.Series(range(len(index)), index=index)
  3842. ds = dd.from_pandas(df, npartitions=npartitions)
  3843. # Series output
  3844. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3845.  
  3846. dask/dataframe/tseries/tests/test_resample.py:23:
  3847. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3848. dask/dataframe/core.py:982: in resample
  3849. return _resample(self, rule, how=how, closed=closed, label=label)
  3850. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3851.  
  3852. 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'))>
  3853. rule = 'h', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  3854. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f15e128>
  3855.  
  3856. def _resample(obj, rule, how, **kwargs):
  3857. resampler = Resampler(obj, rule, **kwargs)
  3858. if how is not None:
  3859. raise FutureWarning(("how in .resample() is deprecated "
  3860. "the new syntax is .resample(...)"
  3861. > ".{0}()").format(how))
  3862. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3863.  
  3864. dask/dataframe/tseries/resample.py:28: FutureWarning
  3865. _____________________________________ test_series_resample[mean-5-h-left-right] ______________________________________
  3866.  
  3867. method = 'mean', npartitions = 5, freq = 'h', closed = 'left', label = 'right'
  3868.  
  3869. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3870. list(product(['count', 'mean', 'ohlc'],
  3871. [2, 5],
  3872. ['30T', 'h', 'd', 'w', 'M'],
  3873. ['right', 'left'],
  3874. ['right', 'left'])))
  3875. def test_series_resample(method, npartitions, freq, closed, label):
  3876. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3877. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3878. df = pd.Series(range(len(index)), index=index)
  3879. ds = dd.from_pandas(df, npartitions=npartitions)
  3880. # Series output
  3881. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3882.  
  3883. dask/dataframe/tseries/tests/test_resample.py:23:
  3884. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3885. dask/dataframe/core.py:982: in resample
  3886. return _resample(self, rule, how=how, closed=closed, label=label)
  3887. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3888.  
  3889. 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'))>
  3890. rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  3891. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f14abe0>
  3892.  
  3893. def _resample(obj, rule, how, **kwargs):
  3894. resampler = Resampler(obj, rule, **kwargs)
  3895. if how is not None:
  3896. raise FutureWarning(("how in .resample() is deprecated "
  3897. "the new syntax is .resample(...)"
  3898. > ".{0}()").format(how))
  3899. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3900.  
  3901. dask/dataframe/tseries/resample.py:28: FutureWarning
  3902. ______________________________________ test_series_resample[mean-5-h-left-left] ______________________________________
  3903.  
  3904. method = 'mean', npartitions = 5, freq = 'h', closed = 'left', label = 'left'
  3905.  
  3906. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3907. list(product(['count', 'mean', 'ohlc'],
  3908. [2, 5],
  3909. ['30T', 'h', 'd', 'w', 'M'],
  3910. ['right', 'left'],
  3911. ['right', 'left'])))
  3912. def test_series_resample(method, npartitions, freq, closed, label):
  3913. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3914. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3915. df = pd.Series(range(len(index)), index=index)
  3916. ds = dd.from_pandas(df, npartitions=npartitions)
  3917. # Series output
  3918. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3919.  
  3920. dask/dataframe/tseries/tests/test_resample.py:23:
  3921. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3922. dask/dataframe/core.py:982: in resample
  3923. return _resample(self, rule, how=how, closed=closed, label=label)
  3924. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3925.  
  3926. 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'))>
  3927. rule = 'h', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  3928. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4322b0>
  3929.  
  3930. def _resample(obj, rule, how, **kwargs):
  3931. resampler = Resampler(obj, rule, **kwargs)
  3932. if how is not None:
  3933. raise FutureWarning(("how in .resample() is deprecated "
  3934. "the new syntax is .resample(...)"
  3935. > ".{0}()").format(how))
  3936. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3937.  
  3938. dask/dataframe/tseries/resample.py:28: FutureWarning
  3939. _____________________________________ test_series_resample[mean-5-d-right-right] _____________________________________
  3940.  
  3941. method = 'mean', npartitions = 5, freq = 'd', closed = 'right', label = 'right'
  3942.  
  3943. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3944. list(product(['count', 'mean', 'ohlc'],
  3945. [2, 5],
  3946. ['30T', 'h', 'd', 'w', 'M'],
  3947. ['right', 'left'],
  3948. ['right', 'left'])))
  3949. def test_series_resample(method, npartitions, freq, closed, label):
  3950. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3951. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3952. df = pd.Series(range(len(index)), index=index)
  3953. ds = dd.from_pandas(df, npartitions=npartitions)
  3954. # Series output
  3955. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3956.  
  3957. dask/dataframe/tseries/tests/test_resample.py:23:
  3958. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3959. dask/dataframe/core.py:982: in resample
  3960. return _resample(self, rule, how=how, closed=closed, label=label)
  3961. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3962.  
  3963. 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'))>
  3964. rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  3965. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16a390>
  3966.  
  3967. def _resample(obj, rule, how, **kwargs):
  3968. resampler = Resampler(obj, rule, **kwargs)
  3969. if how is not None:
  3970. raise FutureWarning(("how in .resample() is deprecated "
  3971. "the new syntax is .resample(...)"
  3972. > ".{0}()").format(how))
  3973. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  3974.  
  3975. dask/dataframe/tseries/resample.py:28: FutureWarning
  3976. _____________________________________ test_series_resample[mean-5-d-right-left] ______________________________________
  3977.  
  3978. method = 'mean', npartitions = 5, freq = 'd', closed = 'right', label = 'left'
  3979.  
  3980. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  3981. list(product(['count', 'mean', 'ohlc'],
  3982. [2, 5],
  3983. ['30T', 'h', 'd', 'w', 'M'],
  3984. ['right', 'left'],
  3985. ['right', 'left'])))
  3986. def test_series_resample(method, npartitions, freq, closed, label):
  3987. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  3988. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  3989. df = pd.Series(range(len(index)), index=index)
  3990. ds = dd.from_pandas(df, npartitions=npartitions)
  3991. # Series output
  3992. > result = ds.resample(freq, how=method, closed=closed, label=label)
  3993.  
  3994. dask/dataframe/tseries/tests/test_resample.py:23:
  3995. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3996. dask/dataframe/core.py:982: in resample
  3997. return _resample(self, rule, how=how, closed=closed, label=label)
  3998. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3999.  
  4000. 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'))>
  4001. rule = 'd', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  4002. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e838400>
  4003.  
  4004. def _resample(obj, rule, how, **kwargs):
  4005. resampler = Resampler(obj, rule, **kwargs)
  4006. if how is not None:
  4007. raise FutureWarning(("how in .resample() is deprecated "
  4008. "the new syntax is .resample(...)"
  4009. > ".{0}()").format(how))
  4010. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4011.  
  4012. dask/dataframe/tseries/resample.py:28: FutureWarning
  4013. _____________________________________ test_series_resample[mean-5-d-left-right] ______________________________________
  4014.  
  4015. method = 'mean', npartitions = 5, freq = 'd', closed = 'left', label = 'right'
  4016.  
  4017. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4018. list(product(['count', 'mean', 'ohlc'],
  4019. [2, 5],
  4020. ['30T', 'h', 'd', 'w', 'M'],
  4021. ['right', 'left'],
  4022. ['right', 'left'])))
  4023. def test_series_resample(method, npartitions, freq, closed, label):
  4024. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4025. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4026. df = pd.Series(range(len(index)), index=index)
  4027. ds = dd.from_pandas(df, npartitions=npartitions)
  4028. # Series output
  4029. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4030.  
  4031. dask/dataframe/tseries/tests/test_resample.py:23:
  4032. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4033. dask/dataframe/core.py:982: in resample
  4034. return _resample(self, rule, how=how, closed=closed, label=label)
  4035. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4036.  
  4037. 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'))>
  4038. rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  4039. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16e080>
  4040.  
  4041. def _resample(obj, rule, how, **kwargs):
  4042. resampler = Resampler(obj, rule, **kwargs)
  4043. if how is not None:
  4044. raise FutureWarning(("how in .resample() is deprecated "
  4045. "the new syntax is .resample(...)"
  4046. > ".{0}()").format(how))
  4047. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4048.  
  4049. dask/dataframe/tseries/resample.py:28: FutureWarning
  4050. ______________________________________ test_series_resample[mean-5-d-left-left] ______________________________________
  4051.  
  4052. method = 'mean', npartitions = 5, freq = 'd', closed = 'left', label = 'left'
  4053.  
  4054. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4055. list(product(['count', 'mean', 'ohlc'],
  4056. [2, 5],
  4057. ['30T', 'h', 'd', 'w', 'M'],
  4058. ['right', 'left'],
  4059. ['right', 'left'])))
  4060. def test_series_resample(method, npartitions, freq, closed, label):
  4061. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4062. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4063. df = pd.Series(range(len(index)), index=index)
  4064. ds = dd.from_pandas(df, npartitions=npartitions)
  4065. # Series output
  4066. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4067.  
  4068. dask/dataframe/tseries/tests/test_resample.py:23:
  4069. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4070. dask/dataframe/core.py:982: in resample
  4071. return _resample(self, rule, how=how, closed=closed, label=label)
  4072. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4073.  
  4074. 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'))>
  4075. rule = 'd', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  4076. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f4ac0f0>
  4077.  
  4078. def _resample(obj, rule, how, **kwargs):
  4079. resampler = Resampler(obj, rule, **kwargs)
  4080. if how is not None:
  4081. raise FutureWarning(("how in .resample() is deprecated "
  4082. "the new syntax is .resample(...)"
  4083. > ".{0}()").format(how))
  4084. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4085.  
  4086. dask/dataframe/tseries/resample.py:28: FutureWarning
  4087. _____________________________________ test_series_resample[mean-5-w-right-right] _____________________________________
  4088.  
  4089. method = 'mean', npartitions = 5, freq = 'w', closed = 'right', label = 'right'
  4090.  
  4091. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4092. list(product(['count', 'mean', 'ohlc'],
  4093. [2, 5],
  4094. ['30T', 'h', 'd', 'w', 'M'],
  4095. ['right', 'left'],
  4096. ['right', 'left'])))
  4097. def test_series_resample(method, npartitions, freq, closed, label):
  4098. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4099. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4100. df = pd.Series(range(len(index)), index=index)
  4101. ds = dd.from_pandas(df, npartitions=npartitions)
  4102. # Series output
  4103. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4104.  
  4105. dask/dataframe/tseries/tests/test_resample.py:23:
  4106. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4107. dask/dataframe/core.py:982: in resample
  4108. return _resample(self, rule, how=how, closed=closed, label=label)
  4109. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4110.  
  4111. 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'))>
  4112. rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  4113. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f16db70>
  4114.  
  4115. def _resample(obj, rule, how, **kwargs):
  4116. resampler = Resampler(obj, rule, **kwargs)
  4117. if how is not None:
  4118. raise FutureWarning(("how in .resample() is deprecated "
  4119. "the new syntax is .resample(...)"
  4120. > ".{0}()").format(how))
  4121. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4122.  
  4123. dask/dataframe/tseries/resample.py:28: FutureWarning
  4124. _____________________________________ test_series_resample[mean-5-w-right-left] ______________________________________
  4125.  
  4126. method = 'mean', npartitions = 5, freq = 'w', closed = 'right', label = 'left'
  4127.  
  4128. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4129. list(product(['count', 'mean', 'ohlc'],
  4130. [2, 5],
  4131. ['30T', 'h', 'd', 'w', 'M'],
  4132. ['right', 'left'],
  4133. ['right', 'left'])))
  4134. def test_series_resample(method, npartitions, freq, closed, label):
  4135. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4136. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4137. df = pd.Series(range(len(index)), index=index)
  4138. ds = dd.from_pandas(df, npartitions=npartitions)
  4139. # Series output
  4140. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4141.  
  4142. dask/dataframe/tseries/tests/test_resample.py:23:
  4143. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4144. dask/dataframe/core.py:982: in resample
  4145. return _resample(self, rule, how=how, closed=closed, label=label)
  4146. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4147.  
  4148. 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'))>
  4149. rule = 'w', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  4150. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1e14e0>
  4151.  
  4152. def _resample(obj, rule, how, **kwargs):
  4153. resampler = Resampler(obj, rule, **kwargs)
  4154. if how is not None:
  4155. raise FutureWarning(("how in .resample() is deprecated "
  4156. "the new syntax is .resample(...)"
  4157. > ".{0}()").format(how))
  4158. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4159.  
  4160. dask/dataframe/tseries/resample.py:28: FutureWarning
  4161. _____________________________________ test_series_resample[mean-5-w-left-right] ______________________________________
  4162.  
  4163. method = 'mean', npartitions = 5, freq = 'w', closed = 'left', label = 'right'
  4164.  
  4165. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4166. list(product(['count', 'mean', 'ohlc'],
  4167. [2, 5],
  4168. ['30T', 'h', 'd', 'w', 'M'],
  4169. ['right', 'left'],
  4170. ['right', 'left'])))
  4171. def test_series_resample(method, npartitions, freq, closed, label):
  4172. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4173. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4174. df = pd.Series(range(len(index)), index=index)
  4175. ds = dd.from_pandas(df, npartitions=npartitions)
  4176. # Series output
  4177. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4178.  
  4179. dask/dataframe/tseries/tests/test_resample.py:23:
  4180. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4181. dask/dataframe/core.py:982: in resample
  4182. return _resample(self, rule, how=how, closed=closed, label=label)
  4183. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4184.  
  4185. 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'))>
  4186. rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  4187. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f20dbe0>
  4188.  
  4189. def _resample(obj, rule, how, **kwargs):
  4190. resampler = Resampler(obj, rule, **kwargs)
  4191. if how is not None:
  4192. raise FutureWarning(("how in .resample() is deprecated "
  4193. "the new syntax is .resample(...)"
  4194. > ".{0}()").format(how))
  4195. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4196.  
  4197. dask/dataframe/tseries/resample.py:28: FutureWarning
  4198. ______________________________________ test_series_resample[mean-5-w-left-left] ______________________________________
  4199.  
  4200. method = 'mean', npartitions = 5, freq = 'w', closed = 'left', label = 'left'
  4201.  
  4202. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4203. list(product(['count', 'mean', 'ohlc'],
  4204. [2, 5],
  4205. ['30T', 'h', 'd', 'w', 'M'],
  4206. ['right', 'left'],
  4207. ['right', 'left'])))
  4208. def test_series_resample(method, npartitions, freq, closed, label):
  4209. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4210. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4211. df = pd.Series(range(len(index)), index=index)
  4212. ds = dd.from_pandas(df, npartitions=npartitions)
  4213. # Series output
  4214. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4215.  
  4216. dask/dataframe/tseries/tests/test_resample.py:23:
  4217. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4218. dask/dataframe/core.py:982: in resample
  4219. return _resample(self, rule, how=how, closed=closed, label=label)
  4220. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4221.  
  4222. 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'))>
  4223. rule = 'w', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  4224. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0e8f98>
  4225.  
  4226. def _resample(obj, rule, how, **kwargs):
  4227. resampler = Resampler(obj, rule, **kwargs)
  4228. if how is not None:
  4229. raise FutureWarning(("how in .resample() is deprecated "
  4230. "the new syntax is .resample(...)"
  4231. > ".{0}()").format(how))
  4232. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4233.  
  4234. dask/dataframe/tseries/resample.py:28: FutureWarning
  4235. _____________________________________ test_series_resample[mean-5-M-right-right] _____________________________________
  4236.  
  4237. method = 'mean', npartitions = 5, freq = 'M', closed = 'right', label = 'right'
  4238.  
  4239. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4240. list(product(['count', 'mean', 'ohlc'],
  4241. [2, 5],
  4242. ['30T', 'h', 'd', 'w', 'M'],
  4243. ['right', 'left'],
  4244. ['right', 'left'])))
  4245. def test_series_resample(method, npartitions, freq, closed, label):
  4246. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4247. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4248. df = pd.Series(range(len(index)), index=index)
  4249. ds = dd.from_pandas(df, npartitions=npartitions)
  4250. # Series output
  4251. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4252.  
  4253. dask/dataframe/tseries/tests/test_resample.py:23:
  4254. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4255. dask/dataframe/core.py:982: in resample
  4256. return _resample(self, rule, how=how, closed=closed, label=label)
  4257. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4258.  
  4259. 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'))>
  4260. rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'right'}
  4261. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629ebbd160>
  4262.  
  4263. def _resample(obj, rule, how, **kwargs):
  4264. resampler = Resampler(obj, rule, **kwargs)
  4265. if how is not None:
  4266. raise FutureWarning(("how in .resample() is deprecated "
  4267. "the new syntax is .resample(...)"
  4268. > ".{0}()").format(how))
  4269. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4270.  
  4271. dask/dataframe/tseries/resample.py:28: FutureWarning
  4272. _____________________________________ test_series_resample[mean-5-M-right-left] ______________________________________
  4273.  
  4274. method = 'mean', npartitions = 5, freq = 'M', closed = 'right', label = 'left'
  4275.  
  4276. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4277. list(product(['count', 'mean', 'ohlc'],
  4278. [2, 5],
  4279. ['30T', 'h', 'd', 'w', 'M'],
  4280. ['right', 'left'],
  4281. ['right', 'left'])))
  4282. def test_series_resample(method, npartitions, freq, closed, label):
  4283. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4284. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4285. df = pd.Series(range(len(index)), index=index)
  4286. ds = dd.from_pandas(df, npartitions=npartitions)
  4287. # Series output
  4288. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4289.  
  4290. dask/dataframe/tseries/tests/test_resample.py:23:
  4291. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4292. dask/dataframe/core.py:982: in resample
  4293. return _resample(self, rule, how=how, closed=closed, label=label)
  4294. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4295.  
  4296. 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'))>
  4297. rule = 'M', how = 'mean', kwargs = {'closed': 'right', 'label': 'left'}
  4298. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1fa5c0>
  4299.  
  4300. def _resample(obj, rule, how, **kwargs):
  4301. resampler = Resampler(obj, rule, **kwargs)
  4302. if how is not None:
  4303. raise FutureWarning(("how in .resample() is deprecated "
  4304. "the new syntax is .resample(...)"
  4305. > ".{0}()").format(how))
  4306. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4307.  
  4308. dask/dataframe/tseries/resample.py:28: FutureWarning
  4309. _____________________________________ test_series_resample[mean-5-M-left-right] ______________________________________
  4310.  
  4311. method = 'mean', npartitions = 5, freq = 'M', closed = 'left', label = 'right'
  4312.  
  4313. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4314. list(product(['count', 'mean', 'ohlc'],
  4315. [2, 5],
  4316. ['30T', 'h', 'd', 'w', 'M'],
  4317. ['right', 'left'],
  4318. ['right', 'left'])))
  4319. def test_series_resample(method, npartitions, freq, closed, label):
  4320. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4321. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4322. df = pd.Series(range(len(index)), index=index)
  4323. ds = dd.from_pandas(df, npartitions=npartitions)
  4324. # Series output
  4325. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4326.  
  4327. dask/dataframe/tseries/tests/test_resample.py:23:
  4328. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4329. dask/dataframe/core.py:982: in resample
  4330. return _resample(self, rule, how=how, closed=closed, label=label)
  4331. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4332.  
  4333. 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'))>
  4334. rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'right'}
  4335. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c4da0f0>
  4336.  
  4337. def _resample(obj, rule, how, **kwargs):
  4338. resampler = Resampler(obj, rule, **kwargs)
  4339. if how is not None:
  4340. raise FutureWarning(("how in .resample() is deprecated "
  4341. "the new syntax is .resample(...)"
  4342. > ".{0}()").format(how))
  4343. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4344.  
  4345. dask/dataframe/tseries/resample.py:28: FutureWarning
  4346. ______________________________________ test_series_resample[mean-5-M-left-left] ______________________________________
  4347.  
  4348. method = 'mean', npartitions = 5, freq = 'M', closed = 'left', label = 'left'
  4349.  
  4350. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4351. list(product(['count', 'mean', 'ohlc'],
  4352. [2, 5],
  4353. ['30T', 'h', 'd', 'w', 'M'],
  4354. ['right', 'left'],
  4355. ['right', 'left'])))
  4356. def test_series_resample(method, npartitions, freq, closed, label):
  4357. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4358. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4359. df = pd.Series(range(len(index)), index=index)
  4360. ds = dd.from_pandas(df, npartitions=npartitions)
  4361. # Series output
  4362. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4363.  
  4364. dask/dataframe/tseries/tests/test_resample.py:23:
  4365. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4366. dask/dataframe/core.py:982: in resample
  4367. return _resample(self, rule, how=how, closed=closed, label=label)
  4368. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4369.  
  4370. 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'))>
  4371. rule = 'M', how = 'mean', kwargs = {'closed': 'left', 'label': 'left'}
  4372. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eaefba8>
  4373.  
  4374. def _resample(obj, rule, how, **kwargs):
  4375. resampler = Resampler(obj, rule, **kwargs)
  4376. if how is not None:
  4377. raise FutureWarning(("how in .resample() is deprecated "
  4378. "the new syntax is .resample(...)"
  4379. > ".{0}()").format(how))
  4380. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).mean()
  4381.  
  4382. dask/dataframe/tseries/resample.py:28: FutureWarning
  4383. ____________________________________ test_series_resample[ohlc-2-30T-right-right] ____________________________________
  4384.  
  4385. method = 'ohlc', npartitions = 2, freq = '30T', closed = 'right', label = 'right'
  4386.  
  4387. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4388. list(product(['count', 'mean', 'ohlc'],
  4389. [2, 5],
  4390. ['30T', 'h', 'd', 'w', 'M'],
  4391. ['right', 'left'],
  4392. ['right', 'left'])))
  4393. def test_series_resample(method, npartitions, freq, closed, label):
  4394. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4395. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4396. df = pd.Series(range(len(index)), index=index)
  4397. ds = dd.from_pandas(df, npartitions=npartitions)
  4398. # Series output
  4399. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4400.  
  4401. dask/dataframe/tseries/tests/test_resample.py:23:
  4402. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4403. dask/dataframe/core.py:982: in resample
  4404. return _resample(self, rule, how=how, closed=closed, label=label)
  4405. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4406.  
  4407. 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'))>
  4408. rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  4409. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f154b70>
  4410.  
  4411. def _resample(obj, rule, how, **kwargs):
  4412. resampler = Resampler(obj, rule, **kwargs)
  4413. if how is not None:
  4414. raise FutureWarning(("how in .resample() is deprecated "
  4415. "the new syntax is .resample(...)"
  4416. > ".{0}()").format(how))
  4417. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4418.  
  4419. dask/dataframe/tseries/resample.py:28: FutureWarning
  4420. ____________________________________ test_series_resample[ohlc-2-30T-right-left] _____________________________________
  4421.  
  4422. method = 'ohlc', npartitions = 2, freq = '30T', closed = 'right', label = 'left'
  4423.  
  4424. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4425. list(product(['count', 'mean', 'ohlc'],
  4426. [2, 5],
  4427. ['30T', 'h', 'd', 'w', 'M'],
  4428. ['right', 'left'],
  4429. ['right', 'left'])))
  4430. def test_series_resample(method, npartitions, freq, closed, label):
  4431. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4432. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4433. df = pd.Series(range(len(index)), index=index)
  4434. ds = dd.from_pandas(df, npartitions=npartitions)
  4435. # Series output
  4436. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4437.  
  4438. dask/dataframe/tseries/tests/test_resample.py:23:
  4439. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4440. dask/dataframe/core.py:982: in resample
  4441. return _resample(self, rule, how=how, closed=closed, label=label)
  4442. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4443.  
  4444. 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'))>
  4445. rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  4446. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f2445c0>
  4447.  
  4448. def _resample(obj, rule, how, **kwargs):
  4449. resampler = Resampler(obj, rule, **kwargs)
  4450. if how is not None:
  4451. raise FutureWarning(("how in .resample() is deprecated "
  4452. "the new syntax is .resample(...)"
  4453. > ".{0}()").format(how))
  4454. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4455.  
  4456. dask/dataframe/tseries/resample.py:28: FutureWarning
  4457. ____________________________________ test_series_resample[ohlc-2-30T-left-right] _____________________________________
  4458.  
  4459. method = 'ohlc', npartitions = 2, freq = '30T', closed = 'left', label = 'right'
  4460.  
  4461. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4462. list(product(['count', 'mean', 'ohlc'],
  4463. [2, 5],
  4464. ['30T', 'h', 'd', 'w', 'M'],
  4465. ['right', 'left'],
  4466. ['right', 'left'])))
  4467. def test_series_resample(method, npartitions, freq, closed, label):
  4468. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4469. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4470. df = pd.Series(range(len(index)), index=index)
  4471. ds = dd.from_pandas(df, npartitions=npartitions)
  4472. # Series output
  4473. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4474.  
  4475. dask/dataframe/tseries/tests/test_resample.py:23:
  4476. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4477. dask/dataframe/core.py:982: in resample
  4478. return _resample(self, rule, how=how, closed=closed, label=label)
  4479. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4480.  
  4481. 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'))>
  4482. rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  4483. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f22ed68>
  4484.  
  4485. def _resample(obj, rule, how, **kwargs):
  4486. resampler = Resampler(obj, rule, **kwargs)
  4487. if how is not None:
  4488. raise FutureWarning(("how in .resample() is deprecated "
  4489. "the new syntax is .resample(...)"
  4490. > ".{0}()").format(how))
  4491. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4492.  
  4493. dask/dataframe/tseries/resample.py:28: FutureWarning
  4494. _____________________________________ test_series_resample[ohlc-2-30T-left-left] _____________________________________
  4495.  
  4496. method = 'ohlc', npartitions = 2, freq = '30T', closed = 'left', label = 'left'
  4497.  
  4498. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4499. list(product(['count', 'mean', 'ohlc'],
  4500. [2, 5],
  4501. ['30T', 'h', 'd', 'w', 'M'],
  4502. ['right', 'left'],
  4503. ['right', 'left'])))
  4504. def test_series_resample(method, npartitions, freq, closed, label):
  4505. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4506. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4507. df = pd.Series(range(len(index)), index=index)
  4508. ds = dd.from_pandas(df, npartitions=npartitions)
  4509. # Series output
  4510. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4511.  
  4512. dask/dataframe/tseries/tests/test_resample.py:23:
  4513. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4514. dask/dataframe/core.py:982: in resample
  4515. return _resample(self, rule, how=how, closed=closed, label=label)
  4516. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4517.  
  4518. 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'))>
  4519. rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  4520. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629db88c18>
  4521.  
  4522. def _resample(obj, rule, how, **kwargs):
  4523. resampler = Resampler(obj, rule, **kwargs)
  4524. if how is not None:
  4525. raise FutureWarning(("how in .resample() is deprecated "
  4526. "the new syntax is .resample(...)"
  4527. > ".{0}()").format(how))
  4528. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4529.  
  4530. dask/dataframe/tseries/resample.py:28: FutureWarning
  4531. _____________________________________ test_series_resample[ohlc-2-h-right-right] _____________________________________
  4532.  
  4533. method = 'ohlc', npartitions = 2, freq = 'h', closed = 'right', label = 'right'
  4534.  
  4535. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4536. list(product(['count', 'mean', 'ohlc'],
  4537. [2, 5],
  4538. ['30T', 'h', 'd', 'w', 'M'],
  4539. ['right', 'left'],
  4540. ['right', 'left'])))
  4541. def test_series_resample(method, npartitions, freq, closed, label):
  4542. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4543. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4544. df = pd.Series(range(len(index)), index=index)
  4545. ds = dd.from_pandas(df, npartitions=npartitions)
  4546. # Series output
  4547. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4548.  
  4549. dask/dataframe/tseries/tests/test_resample.py:23:
  4550. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4551. dask/dataframe/core.py:982: in resample
  4552. return _resample(self, rule, how=how, closed=closed, label=label)
  4553. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4554.  
  4555. 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'))>
  4556. rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  4557. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f17e3c8>
  4558.  
  4559. def _resample(obj, rule, how, **kwargs):
  4560. resampler = Resampler(obj, rule, **kwargs)
  4561. if how is not None:
  4562. raise FutureWarning(("how in .resample() is deprecated "
  4563. "the new syntax is .resample(...)"
  4564. > ".{0}()").format(how))
  4565. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4566.  
  4567. dask/dataframe/tseries/resample.py:28: FutureWarning
  4568. _____________________________________ test_series_resample[ohlc-2-h-right-left] ______________________________________
  4569.  
  4570. method = 'ohlc', npartitions = 2, freq = 'h', closed = 'right', label = 'left'
  4571.  
  4572. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4573. list(product(['count', 'mean', 'ohlc'],
  4574. [2, 5],
  4575. ['30T', 'h', 'd', 'w', 'M'],
  4576. ['right', 'left'],
  4577. ['right', 'left'])))
  4578. def test_series_resample(method, npartitions, freq, closed, label):
  4579. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4580. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4581. df = pd.Series(range(len(index)), index=index)
  4582. ds = dd.from_pandas(df, npartitions=npartitions)
  4583. # Series output
  4584. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4585.  
  4586. dask/dataframe/tseries/tests/test_resample.py:23:
  4587. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4588. dask/dataframe/core.py:982: in resample
  4589. return _resample(self, rule, how=how, closed=closed, label=label)
  4590. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4591.  
  4592. 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'))>
  4593. rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  4594. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629eb20c18>
  4595.  
  4596. def _resample(obj, rule, how, **kwargs):
  4597. resampler = Resampler(obj, rule, **kwargs)
  4598. if how is not None:
  4599. raise FutureWarning(("how in .resample() is deprecated "
  4600. "the new syntax is .resample(...)"
  4601. > ".{0}()").format(how))
  4602. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4603.  
  4604. dask/dataframe/tseries/resample.py:28: FutureWarning
  4605. _____________________________________ test_series_resample[ohlc-2-h-left-right] ______________________________________
  4606.  
  4607. method = 'ohlc', npartitions = 2, freq = 'h', closed = 'left', label = 'right'
  4608.  
  4609. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4610. list(product(['count', 'mean', 'ohlc'],
  4611. [2, 5],
  4612. ['30T', 'h', 'd', 'w', 'M'],
  4613. ['right', 'left'],
  4614. ['right', 'left'])))
  4615. def test_series_resample(method, npartitions, freq, closed, label):
  4616. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4617. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4618. df = pd.Series(range(len(index)), index=index)
  4619. ds = dd.from_pandas(df, npartitions=npartitions)
  4620. # Series output
  4621. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4622.  
  4623. dask/dataframe/tseries/tests/test_resample.py:23:
  4624. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4625. dask/dataframe/core.py:982: in resample
  4626. return _resample(self, rule, how=how, closed=closed, label=label)
  4627. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4628.  
  4629. 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'))>
  4630. rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  4631. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f25ab70>
  4632.  
  4633. def _resample(obj, rule, how, **kwargs):
  4634. resampler = Resampler(obj, rule, **kwargs)
  4635. if how is not None:
  4636. raise FutureWarning(("how in .resample() is deprecated "
  4637. "the new syntax is .resample(...)"
  4638. > ".{0}()").format(how))
  4639. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4640.  
  4641. dask/dataframe/tseries/resample.py:28: FutureWarning
  4642. ______________________________________ test_series_resample[ohlc-2-h-left-left] ______________________________________
  4643.  
  4644. method = 'ohlc', npartitions = 2, freq = 'h', closed = 'left', label = 'left'
  4645.  
  4646. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4647. list(product(['count', 'mean', 'ohlc'],
  4648. [2, 5],
  4649. ['30T', 'h', 'd', 'w', 'M'],
  4650. ['right', 'left'],
  4651. ['right', 'left'])))
  4652. def test_series_resample(method, npartitions, freq, closed, label):
  4653. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4654. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4655. df = pd.Series(range(len(index)), index=index)
  4656. ds = dd.from_pandas(df, npartitions=npartitions)
  4657. # Series output
  4658. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4659.  
  4660. dask/dataframe/tseries/tests/test_resample.py:23:
  4661. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4662. dask/dataframe/core.py:982: in resample
  4663. return _resample(self, rule, how=how, closed=closed, label=label)
  4664. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4665.  
  4666. 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'))>
  4667. rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  4668. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f215ac8>
  4669.  
  4670. def _resample(obj, rule, how, **kwargs):
  4671. resampler = Resampler(obj, rule, **kwargs)
  4672. if how is not None:
  4673. raise FutureWarning(("how in .resample() is deprecated "
  4674. "the new syntax is .resample(...)"
  4675. > ".{0}()").format(how))
  4676. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4677.  
  4678. dask/dataframe/tseries/resample.py:28: FutureWarning
  4679. _____________________________________ test_series_resample[ohlc-2-d-right-right] _____________________________________
  4680.  
  4681. method = 'ohlc', npartitions = 2, freq = 'd', closed = 'right', label = 'right'
  4682.  
  4683. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4684. list(product(['count', 'mean', 'ohlc'],
  4685. [2, 5],
  4686. ['30T', 'h', 'd', 'w', 'M'],
  4687. ['right', 'left'],
  4688. ['right', 'left'])))
  4689. def test_series_resample(method, npartitions, freq, closed, label):
  4690. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4691. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4692. df = pd.Series(range(len(index)), index=index)
  4693. ds = dd.from_pandas(df, npartitions=npartitions)
  4694. # Series output
  4695. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4696.  
  4697. dask/dataframe/tseries/tests/test_resample.py:23:
  4698. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4699. dask/dataframe/core.py:982: in resample
  4700. return _resample(self, rule, how=how, closed=closed, label=label)
  4701. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4702.  
  4703. 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'))>
  4704. rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  4705. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f11a358>
  4706.  
  4707. def _resample(obj, rule, how, **kwargs):
  4708. resampler = Resampler(obj, rule, **kwargs)
  4709. if how is not None:
  4710. raise FutureWarning(("how in .resample() is deprecated "
  4711. "the new syntax is .resample(...)"
  4712. > ".{0}()").format(how))
  4713. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4714.  
  4715. dask/dataframe/tseries/resample.py:28: FutureWarning
  4716. _____________________________________ test_series_resample[ohlc-2-d-right-left] ______________________________________
  4717.  
  4718. method = 'ohlc', npartitions = 2, freq = 'd', closed = 'right', label = 'left'
  4719.  
  4720. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4721. list(product(['count', 'mean', 'ohlc'],
  4722. [2, 5],
  4723. ['30T', 'h', 'd', 'w', 'M'],
  4724. ['right', 'left'],
  4725. ['right', 'left'])))
  4726. def test_series_resample(method, npartitions, freq, closed, label):
  4727. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4728. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4729. df = pd.Series(range(len(index)), index=index)
  4730. ds = dd.from_pandas(df, npartitions=npartitions)
  4731. # Series output
  4732. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4733.  
  4734. dask/dataframe/tseries/tests/test_resample.py:23:
  4735. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4736. dask/dataframe/core.py:982: in resample
  4737. return _resample(self, rule, how=how, closed=closed, label=label)
  4738. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4739.  
  4740. 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'))>
  4741. rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  4742. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f442a20>
  4743.  
  4744. def _resample(obj, rule, how, **kwargs):
  4745. resampler = Resampler(obj, rule, **kwargs)
  4746. if how is not None:
  4747. raise FutureWarning(("how in .resample() is deprecated "
  4748. "the new syntax is .resample(...)"
  4749. > ".{0}()").format(how))
  4750. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4751.  
  4752. dask/dataframe/tseries/resample.py:28: FutureWarning
  4753. _____________________________________ test_series_resample[ohlc-2-d-left-right] ______________________________________
  4754.  
  4755. method = 'ohlc', npartitions = 2, freq = 'd', closed = 'left', label = 'right'
  4756.  
  4757. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4758. list(product(['count', 'mean', 'ohlc'],
  4759. [2, 5],
  4760. ['30T', 'h', 'd', 'w', 'M'],
  4761. ['right', 'left'],
  4762. ['right', 'left'])))
  4763. def test_series_resample(method, npartitions, freq, closed, label):
  4764. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4765. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4766. df = pd.Series(range(len(index)), index=index)
  4767. ds = dd.from_pandas(df, npartitions=npartitions)
  4768. # Series output
  4769. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4770.  
  4771. dask/dataframe/tseries/tests/test_resample.py:23:
  4772. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4773. dask/dataframe/core.py:982: in resample
  4774. return _resample(self, rule, how=how, closed=closed, label=label)
  4775. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4776.  
  4777. 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'))>
  4778. rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  4779. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629ebd4780>
  4780.  
  4781. def _resample(obj, rule, how, **kwargs):
  4782. resampler = Resampler(obj, rule, **kwargs)
  4783. if how is not None:
  4784. raise FutureWarning(("how in .resample() is deprecated "
  4785. "the new syntax is .resample(...)"
  4786. > ".{0}()").format(how))
  4787. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4788.  
  4789. dask/dataframe/tseries/resample.py:28: FutureWarning
  4790. ______________________________________ test_series_resample[ohlc-2-d-left-left] ______________________________________
  4791.  
  4792. method = 'ohlc', npartitions = 2, freq = 'd', closed = 'left', label = 'left'
  4793.  
  4794. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4795. list(product(['count', 'mean', 'ohlc'],
  4796. [2, 5],
  4797. ['30T', 'h', 'd', 'w', 'M'],
  4798. ['right', 'left'],
  4799. ['right', 'left'])))
  4800. def test_series_resample(method, npartitions, freq, closed, label):
  4801. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4802. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4803. df = pd.Series(range(len(index)), index=index)
  4804. ds = dd.from_pandas(df, npartitions=npartitions)
  4805. # Series output
  4806. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4807.  
  4808. dask/dataframe/tseries/tests/test_resample.py:23:
  4809. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4810. dask/dataframe/core.py:982: in resample
  4811. return _resample(self, rule, how=how, closed=closed, label=label)
  4812. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4813.  
  4814. 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'))>
  4815. rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  4816. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f181240>
  4817.  
  4818. def _resample(obj, rule, how, **kwargs):
  4819. resampler = Resampler(obj, rule, **kwargs)
  4820. if how is not None:
  4821. raise FutureWarning(("how in .resample() is deprecated "
  4822. "the new syntax is .resample(...)"
  4823. > ".{0}()").format(how))
  4824. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4825.  
  4826. dask/dataframe/tseries/resample.py:28: FutureWarning
  4827. _____________________________________ test_series_resample[ohlc-2-w-right-right] _____________________________________
  4828.  
  4829. method = 'ohlc', npartitions = 2, freq = 'w', closed = 'right', label = 'right'
  4830.  
  4831. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4832. list(product(['count', 'mean', 'ohlc'],
  4833. [2, 5],
  4834. ['30T', 'h', 'd', 'w', 'M'],
  4835. ['right', 'left'],
  4836. ['right', 'left'])))
  4837. def test_series_resample(method, npartitions, freq, closed, label):
  4838. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4839. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4840. df = pd.Series(range(len(index)), index=index)
  4841. ds = dd.from_pandas(df, npartitions=npartitions)
  4842. # Series output
  4843. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4844.  
  4845. dask/dataframe/tseries/tests/test_resample.py:23:
  4846. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4847. dask/dataframe/core.py:982: in resample
  4848. return _resample(self, rule, how=how, closed=closed, label=label)
  4849. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4850.  
  4851. 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'))>
  4852. rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  4853. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f49e940>
  4854.  
  4855. def _resample(obj, rule, how, **kwargs):
  4856. resampler = Resampler(obj, rule, **kwargs)
  4857. if how is not None:
  4858. raise FutureWarning(("how in .resample() is deprecated "
  4859. "the new syntax is .resample(...)"
  4860. > ".{0}()").format(how))
  4861. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4862.  
  4863. dask/dataframe/tseries/resample.py:28: FutureWarning
  4864. _____________________________________ test_series_resample[ohlc-2-w-right-left] ______________________________________
  4865.  
  4866. method = 'ohlc', npartitions = 2, freq = 'w', closed = 'right', label = 'left'
  4867.  
  4868. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4869. list(product(['count', 'mean', 'ohlc'],
  4870. [2, 5],
  4871. ['30T', 'h', 'd', 'w', 'M'],
  4872. ['right', 'left'],
  4873. ['right', 'left'])))
  4874. def test_series_resample(method, npartitions, freq, closed, label):
  4875. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4876. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4877. df = pd.Series(range(len(index)), index=index)
  4878. ds = dd.from_pandas(df, npartitions=npartitions)
  4879. # Series output
  4880. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4881.  
  4882. dask/dataframe/tseries/tests/test_resample.py:23:
  4883. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4884. dask/dataframe/core.py:982: in resample
  4885. return _resample(self, rule, how=how, closed=closed, label=label)
  4886. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4887.  
  4888. 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'))>
  4889. rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  4890. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f14ab38>
  4891.  
  4892. def _resample(obj, rule, how, **kwargs):
  4893. resampler = Resampler(obj, rule, **kwargs)
  4894. if how is not None:
  4895. raise FutureWarning(("how in .resample() is deprecated "
  4896. "the new syntax is .resample(...)"
  4897. > ".{0}()").format(how))
  4898. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4899.  
  4900. dask/dataframe/tseries/resample.py:28: FutureWarning
  4901. _____________________________________ test_series_resample[ohlc-2-w-left-right] ______________________________________
  4902.  
  4903. method = 'ohlc', npartitions = 2, freq = 'w', closed = 'left', label = 'right'
  4904.  
  4905. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4906. list(product(['count', 'mean', 'ohlc'],
  4907. [2, 5],
  4908. ['30T', 'h', 'd', 'w', 'M'],
  4909. ['right', 'left'],
  4910. ['right', 'left'])))
  4911. def test_series_resample(method, npartitions, freq, closed, label):
  4912. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4913. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4914. df = pd.Series(range(len(index)), index=index)
  4915. ds = dd.from_pandas(df, npartitions=npartitions)
  4916. # Series output
  4917. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4918.  
  4919. dask/dataframe/tseries/tests/test_resample.py:23:
  4920. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4921. dask/dataframe/core.py:982: in resample
  4922. return _resample(self, rule, how=how, closed=closed, label=label)
  4923. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4924.  
  4925. 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'))>
  4926. rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  4927. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f141cc0>
  4928.  
  4929. def _resample(obj, rule, how, **kwargs):
  4930. resampler = Resampler(obj, rule, **kwargs)
  4931. if how is not None:
  4932. raise FutureWarning(("how in .resample() is deprecated "
  4933. "the new syntax is .resample(...)"
  4934. > ".{0}()").format(how))
  4935. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4936.  
  4937. dask/dataframe/tseries/resample.py:28: FutureWarning
  4938. ______________________________________ test_series_resample[ohlc-2-w-left-left] ______________________________________
  4939.  
  4940. method = 'ohlc', npartitions = 2, freq = 'w', closed = 'left', label = 'left'
  4941.  
  4942. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4943. list(product(['count', 'mean', 'ohlc'],
  4944. [2, 5],
  4945. ['30T', 'h', 'd', 'w', 'M'],
  4946. ['right', 'left'],
  4947. ['right', 'left'])))
  4948. def test_series_resample(method, npartitions, freq, closed, label):
  4949. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4950. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4951. df = pd.Series(range(len(index)), index=index)
  4952. ds = dd.from_pandas(df, npartitions=npartitions)
  4953. # Series output
  4954. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4955.  
  4956. dask/dataframe/tseries/tests/test_resample.py:23:
  4957. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4958. dask/dataframe/core.py:982: in resample
  4959. return _resample(self, rule, how=how, closed=closed, label=label)
  4960. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4961.  
  4962. 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'))>
  4963. rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  4964. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f218710>
  4965.  
  4966. def _resample(obj, rule, how, **kwargs):
  4967. resampler = Resampler(obj, rule, **kwargs)
  4968. if how is not None:
  4969. raise FutureWarning(("how in .resample() is deprecated "
  4970. "the new syntax is .resample(...)"
  4971. > ".{0}()").format(how))
  4972. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  4973.  
  4974. dask/dataframe/tseries/resample.py:28: FutureWarning
  4975. _____________________________________ test_series_resample[ohlc-2-M-right-right] _____________________________________
  4976.  
  4977. method = 'ohlc', npartitions = 2, freq = 'M', closed = 'right', label = 'right'
  4978.  
  4979. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  4980. list(product(['count', 'mean', 'ohlc'],
  4981. [2, 5],
  4982. ['30T', 'h', 'd', 'w', 'M'],
  4983. ['right', 'left'],
  4984. ['right', 'left'])))
  4985. def test_series_resample(method, npartitions, freq, closed, label):
  4986. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  4987. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  4988. df = pd.Series(range(len(index)), index=index)
  4989. ds = dd.from_pandas(df, npartitions=npartitions)
  4990. # Series output
  4991. > result = ds.resample(freq, how=method, closed=closed, label=label)
  4992.  
  4993. dask/dataframe/tseries/tests/test_resample.py:23:
  4994. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4995. dask/dataframe/core.py:982: in resample
  4996. return _resample(self, rule, how=how, closed=closed, label=label)
  4997. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4998.  
  4999. 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'))>
  5000. rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  5001. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f13c630>
  5002.  
  5003. def _resample(obj, rule, how, **kwargs):
  5004. resampler = Resampler(obj, rule, **kwargs)
  5005. if how is not None:
  5006. raise FutureWarning(("how in .resample() is deprecated "
  5007. "the new syntax is .resample(...)"
  5008. > ".{0}()").format(how))
  5009. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5010.  
  5011. dask/dataframe/tseries/resample.py:28: FutureWarning
  5012. _____________________________________ test_series_resample[ohlc-2-M-right-left] ______________________________________
  5013.  
  5014. method = 'ohlc', npartitions = 2, freq = 'M', closed = 'right', label = 'left'
  5015.  
  5016. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5017. list(product(['count', 'mean', 'ohlc'],
  5018. [2, 5],
  5019. ['30T', 'h', 'd', 'w', 'M'],
  5020. ['right', 'left'],
  5021. ['right', 'left'])))
  5022. def test_series_resample(method, npartitions, freq, closed, label):
  5023. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5024. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5025. df = pd.Series(range(len(index)), index=index)
  5026. ds = dd.from_pandas(df, npartitions=npartitions)
  5027. # Series output
  5028. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5029.  
  5030. dask/dataframe/tseries/tests/test_resample.py:23:
  5031. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5032. dask/dataframe/core.py:982: in resample
  5033. return _resample(self, rule, how=how, closed=closed, label=label)
  5034. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5035.  
  5036. 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'))>
  5037. rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  5038. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1453c8>
  5039.  
  5040. def _resample(obj, rule, how, **kwargs):
  5041. resampler = Resampler(obj, rule, **kwargs)
  5042. if how is not None:
  5043. raise FutureWarning(("how in .resample() is deprecated "
  5044. "the new syntax is .resample(...)"
  5045. > ".{0}()").format(how))
  5046. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5047.  
  5048. dask/dataframe/tseries/resample.py:28: FutureWarning
  5049. _____________________________________ test_series_resample[ohlc-2-M-left-right] ______________________________________
  5050.  
  5051. method = 'ohlc', npartitions = 2, freq = 'M', closed = 'left', label = 'right'
  5052.  
  5053. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5054. list(product(['count', 'mean', 'ohlc'],
  5055. [2, 5],
  5056. ['30T', 'h', 'd', 'w', 'M'],
  5057. ['right', 'left'],
  5058. ['right', 'left'])))
  5059. def test_series_resample(method, npartitions, freq, closed, label):
  5060. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5061. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5062. df = pd.Series(range(len(index)), index=index)
  5063. ds = dd.from_pandas(df, npartitions=npartitions)
  5064. # Series output
  5065. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5066.  
  5067. dask/dataframe/tseries/tests/test_resample.py:23:
  5068. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5069. dask/dataframe/core.py:982: in resample
  5070. return _resample(self, rule, how=how, closed=closed, label=label)
  5071. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5072.  
  5073. 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'))>
  5074. rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  5075. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f0fe5f8>
  5076.  
  5077. def _resample(obj, rule, how, **kwargs):
  5078. resampler = Resampler(obj, rule, **kwargs)
  5079. if how is not None:
  5080. raise FutureWarning(("how in .resample() is deprecated "
  5081. "the new syntax is .resample(...)"
  5082. > ".{0}()").format(how))
  5083. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5084.  
  5085. dask/dataframe/tseries/resample.py:28: FutureWarning
  5086. ______________________________________ test_series_resample[ohlc-2-M-left-left] ______________________________________
  5087.  
  5088. method = 'ohlc', npartitions = 2, freq = 'M', closed = 'left', label = 'left'
  5089.  
  5090. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5091. list(product(['count', 'mean', 'ohlc'],
  5092. [2, 5],
  5093. ['30T', 'h', 'd', 'w', 'M'],
  5094. ['right', 'left'],
  5095. ['right', 'left'])))
  5096. def test_series_resample(method, npartitions, freq, closed, label):
  5097. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5098. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5099. df = pd.Series(range(len(index)), index=index)
  5100. ds = dd.from_pandas(df, npartitions=npartitions)
  5101. # Series output
  5102. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5103.  
  5104. dask/dataframe/tseries/tests/test_resample.py:23:
  5105. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5106. dask/dataframe/core.py:982: in resample
  5107. return _resample(self, rule, how=how, closed=closed, label=label)
  5108. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5109.  
  5110. 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'))>
  5111. rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  5112. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f10a320>
  5113.  
  5114. def _resample(obj, rule, how, **kwargs):
  5115. resampler = Resampler(obj, rule, **kwargs)
  5116. if how is not None:
  5117. raise FutureWarning(("how in .resample() is deprecated "
  5118. "the new syntax is .resample(...)"
  5119. > ".{0}()").format(how))
  5120. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5121.  
  5122. dask/dataframe/tseries/resample.py:28: FutureWarning
  5123. ____________________________________ test_series_resample[ohlc-5-30T-right-right] ____________________________________
  5124.  
  5125. method = 'ohlc', npartitions = 5, freq = '30T', closed = 'right', label = 'right'
  5126.  
  5127. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5128. list(product(['count', 'mean', 'ohlc'],
  5129. [2, 5],
  5130. ['30T', 'h', 'd', 'w', 'M'],
  5131. ['right', 'left'],
  5132. ['right', 'left'])))
  5133. def test_series_resample(method, npartitions, freq, closed, label):
  5134. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5135. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5136. df = pd.Series(range(len(index)), index=index)
  5137. ds = dd.from_pandas(df, npartitions=npartitions)
  5138. # Series output
  5139. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5140.  
  5141. dask/dataframe/tseries/tests/test_resample.py:23:
  5142. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5143. dask/dataframe/core.py:982: in resample
  5144. return _resample(self, rule, how=how, closed=closed, label=label)
  5145. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5146.  
  5147. 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'))>
  5148. rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  5149. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e6dc160>
  5150.  
  5151. def _resample(obj, rule, how, **kwargs):
  5152. resampler = Resampler(obj, rule, **kwargs)
  5153. if how is not None:
  5154. raise FutureWarning(("how in .resample() is deprecated "
  5155. "the new syntax is .resample(...)"
  5156. > ".{0}()").format(how))
  5157. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5158.  
  5159. dask/dataframe/tseries/resample.py:28: FutureWarning
  5160. ____________________________________ test_series_resample[ohlc-5-30T-right-left] _____________________________________
  5161.  
  5162. method = 'ohlc', npartitions = 5, freq = '30T', closed = 'right', label = 'left'
  5163.  
  5164. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5165. list(product(['count', 'mean', 'ohlc'],
  5166. [2, 5],
  5167. ['30T', 'h', 'd', 'w', 'M'],
  5168. ['right', 'left'],
  5169. ['right', 'left'])))
  5170. def test_series_resample(method, npartitions, freq, closed, label):
  5171. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5172. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5173. df = pd.Series(range(len(index)), index=index)
  5174. ds = dd.from_pandas(df, npartitions=npartitions)
  5175. # Series output
  5176. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5177.  
  5178. dask/dataframe/tseries/tests/test_resample.py:23:
  5179. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5180. dask/dataframe/core.py:982: in resample
  5181. return _resample(self, rule, how=how, closed=closed, label=label)
  5182. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5183.  
  5184. 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'))>
  5185. rule = '30T', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  5186. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1147b8>
  5187.  
  5188. def _resample(obj, rule, how, **kwargs):
  5189. resampler = Resampler(obj, rule, **kwargs)
  5190. if how is not None:
  5191. raise FutureWarning(("how in .resample() is deprecated "
  5192. "the new syntax is .resample(...)"
  5193. > ".{0}()").format(how))
  5194. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5195.  
  5196. dask/dataframe/tseries/resample.py:28: FutureWarning
  5197. ____________________________________ test_series_resample[ohlc-5-30T-left-right] _____________________________________
  5198.  
  5199. method = 'ohlc', npartitions = 5, freq = '30T', closed = 'left', label = 'right'
  5200.  
  5201. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5202. list(product(['count', 'mean', 'ohlc'],
  5203. [2, 5],
  5204. ['30T', 'h', 'd', 'w', 'M'],
  5205. ['right', 'left'],
  5206. ['right', 'left'])))
  5207. def test_series_resample(method, npartitions, freq, closed, label):
  5208. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5209. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5210. df = pd.Series(range(len(index)), index=index)
  5211. ds = dd.from_pandas(df, npartitions=npartitions)
  5212. # Series output
  5213. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5214.  
  5215. dask/dataframe/tseries/tests/test_resample.py:23:
  5216. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5217. dask/dataframe/core.py:982: in resample
  5218. return _resample(self, rule, how=how, closed=closed, label=label)
  5219. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5220.  
  5221. 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'))>
  5222. rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  5223. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1fa9b0>
  5224.  
  5225. def _resample(obj, rule, how, **kwargs):
  5226. resampler = Resampler(obj, rule, **kwargs)
  5227. if how is not None:
  5228. raise FutureWarning(("how in .resample() is deprecated "
  5229. "the new syntax is .resample(...)"
  5230. > ".{0}()").format(how))
  5231. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5232.  
  5233. dask/dataframe/tseries/resample.py:28: FutureWarning
  5234. _____________________________________ test_series_resample[ohlc-5-30T-left-left] _____________________________________
  5235.  
  5236. method = 'ohlc', npartitions = 5, freq = '30T', closed = 'left', label = 'left'
  5237.  
  5238. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5239. list(product(['count', 'mean', 'ohlc'],
  5240. [2, 5],
  5241. ['30T', 'h', 'd', 'w', 'M'],
  5242. ['right', 'left'],
  5243. ['right', 'left'])))
  5244. def test_series_resample(method, npartitions, freq, closed, label):
  5245. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5246. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5247. df = pd.Series(range(len(index)), index=index)
  5248. ds = dd.from_pandas(df, npartitions=npartitions)
  5249. # Series output
  5250. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5251.  
  5252. dask/dataframe/tseries/tests/test_resample.py:23:
  5253. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5254. dask/dataframe/core.py:982: in resample
  5255. return _resample(self, rule, how=how, closed=closed, label=label)
  5256. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5257.  
  5258. 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'))>
  5259. rule = '30T', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  5260. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62b809da90>
  5261.  
  5262. def _resample(obj, rule, how, **kwargs):
  5263. resampler = Resampler(obj, rule, **kwargs)
  5264. if how is not None:
  5265. raise FutureWarning(("how in .resample() is deprecated "
  5266. "the new syntax is .resample(...)"
  5267. > ".{0}()").format(how))
  5268. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5269.  
  5270. dask/dataframe/tseries/resample.py:28: FutureWarning
  5271. _____________________________________ test_series_resample[ohlc-5-h-right-right] _____________________________________
  5272.  
  5273. method = 'ohlc', npartitions = 5, freq = 'h', closed = 'right', label = 'right'
  5274.  
  5275. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5276. list(product(['count', 'mean', 'ohlc'],
  5277. [2, 5],
  5278. ['30T', 'h', 'd', 'w', 'M'],
  5279. ['right', 'left'],
  5280. ['right', 'left'])))
  5281. def test_series_resample(method, npartitions, freq, closed, label):
  5282. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5283. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5284. df = pd.Series(range(len(index)), index=index)
  5285. ds = dd.from_pandas(df, npartitions=npartitions)
  5286. # Series output
  5287. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5288.  
  5289. dask/dataframe/tseries/tests/test_resample.py:23:
  5290. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5291. dask/dataframe/core.py:982: in resample
  5292. return _resample(self, rule, how=how, closed=closed, label=label)
  5293. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5294.  
  5295. 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'))>
  5296. rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  5297. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c4da438>
  5298.  
  5299. def _resample(obj, rule, how, **kwargs):
  5300. resampler = Resampler(obj, rule, **kwargs)
  5301. if how is not None:
  5302. raise FutureWarning(("how in .resample() is deprecated "
  5303. "the new syntax is .resample(...)"
  5304. > ".{0}()").format(how))
  5305. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5306.  
  5307. dask/dataframe/tseries/resample.py:28: FutureWarning
  5308. _____________________________________ test_series_resample[ohlc-5-h-right-left] ______________________________________
  5309.  
  5310. method = 'ohlc', npartitions = 5, freq = 'h', closed = 'right', label = 'left'
  5311.  
  5312. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5313. list(product(['count', 'mean', 'ohlc'],
  5314. [2, 5],
  5315. ['30T', 'h', 'd', 'w', 'M'],
  5316. ['right', 'left'],
  5317. ['right', 'left'])))
  5318. def test_series_resample(method, npartitions, freq, closed, label):
  5319. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5320. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5321. df = pd.Series(range(len(index)), index=index)
  5322. ds = dd.from_pandas(df, npartitions=npartitions)
  5323. # Series output
  5324. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5325.  
  5326. dask/dataframe/tseries/tests/test_resample.py:23:
  5327. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5328. dask/dataframe/core.py:982: in resample
  5329. return _resample(self, rule, how=how, closed=closed, label=label)
  5330. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5331.  
  5332. 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'))>
  5333. rule = 'h', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  5334. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f22eb70>
  5335.  
  5336. def _resample(obj, rule, how, **kwargs):
  5337. resampler = Resampler(obj, rule, **kwargs)
  5338. if how is not None:
  5339. raise FutureWarning(("how in .resample() is deprecated "
  5340. "the new syntax is .resample(...)"
  5341. > ".{0}()").format(how))
  5342. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5343.  
  5344. dask/dataframe/tseries/resample.py:28: FutureWarning
  5345. _____________________________________ test_series_resample[ohlc-5-h-left-right] ______________________________________
  5346.  
  5347. method = 'ohlc', npartitions = 5, freq = 'h', closed = 'left', label = 'right'
  5348.  
  5349. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5350. list(product(['count', 'mean', 'ohlc'],
  5351. [2, 5],
  5352. ['30T', 'h', 'd', 'w', 'M'],
  5353. ['right', 'left'],
  5354. ['right', 'left'])))
  5355. def test_series_resample(method, npartitions, freq, closed, label):
  5356. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5357. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5358. df = pd.Series(range(len(index)), index=index)
  5359. ds = dd.from_pandas(df, npartitions=npartitions)
  5360. # Series output
  5361. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5362.  
  5363. dask/dataframe/tseries/tests/test_resample.py:23:
  5364. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5365. dask/dataframe/core.py:982: in resample
  5366. return _resample(self, rule, how=how, closed=closed, label=label)
  5367. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5368.  
  5369. 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'))>
  5370. rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  5371. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f124d30>
  5372.  
  5373. def _resample(obj, rule, how, **kwargs):
  5374. resampler = Resampler(obj, rule, **kwargs)
  5375. if how is not None:
  5376. raise FutureWarning(("how in .resample() is deprecated "
  5377. "the new syntax is .resample(...)"
  5378. > ".{0}()").format(how))
  5379. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5380.  
  5381. dask/dataframe/tseries/resample.py:28: FutureWarning
  5382. ______________________________________ test_series_resample[ohlc-5-h-left-left] ______________________________________
  5383.  
  5384. method = 'ohlc', npartitions = 5, freq = 'h', closed = 'left', label = 'left'
  5385.  
  5386. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5387. list(product(['count', 'mean', 'ohlc'],
  5388. [2, 5],
  5389. ['30T', 'h', 'd', 'w', 'M'],
  5390. ['right', 'left'],
  5391. ['right', 'left'])))
  5392. def test_series_resample(method, npartitions, freq, closed, label):
  5393. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5394. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5395. df = pd.Series(range(len(index)), index=index)
  5396. ds = dd.from_pandas(df, npartitions=npartitions)
  5397. # Series output
  5398. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5399.  
  5400. dask/dataframe/tseries/tests/test_resample.py:23:
  5401. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5402. dask/dataframe/core.py:982: in resample
  5403. return _resample(self, rule, how=how, closed=closed, label=label)
  5404. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5405.  
  5406. 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'))>
  5407. rule = 'h', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  5408. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f1157b8>
  5409.  
  5410. def _resample(obj, rule, how, **kwargs):
  5411. resampler = Resampler(obj, rule, **kwargs)
  5412. if how is not None:
  5413. raise FutureWarning(("how in .resample() is deprecated "
  5414. "the new syntax is .resample(...)"
  5415. > ".{0}()").format(how))
  5416. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5417.  
  5418. dask/dataframe/tseries/resample.py:28: FutureWarning
  5419. _____________________________________ test_series_resample[ohlc-5-d-right-right] _____________________________________
  5420.  
  5421. method = 'ohlc', npartitions = 5, freq = 'd', closed = 'right', label = 'right'
  5422.  
  5423. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5424. list(product(['count', 'mean', 'ohlc'],
  5425. [2, 5],
  5426. ['30T', 'h', 'd', 'w', 'M'],
  5427. ['right', 'left'],
  5428. ['right', 'left'])))
  5429. def test_series_resample(method, npartitions, freq, closed, label):
  5430. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5431. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5432. df = pd.Series(range(len(index)), index=index)
  5433. ds = dd.from_pandas(df, npartitions=npartitions)
  5434. # Series output
  5435. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5436.  
  5437. dask/dataframe/tseries/tests/test_resample.py:23:
  5438. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5439. dask/dataframe/core.py:982: in resample
  5440. return _resample(self, rule, how=how, closed=closed, label=label)
  5441. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5442.  
  5443. 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'))>
  5444. rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  5445. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f432fd0>
  5446.  
  5447. def _resample(obj, rule, how, **kwargs):
  5448. resampler = Resampler(obj, rule, **kwargs)
  5449. if how is not None:
  5450. raise FutureWarning(("how in .resample() is deprecated "
  5451. "the new syntax is .resample(...)"
  5452. > ".{0}()").format(how))
  5453. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5454.  
  5455. dask/dataframe/tseries/resample.py:28: FutureWarning
  5456. _____________________________________ test_series_resample[ohlc-5-d-right-left] ______________________________________
  5457.  
  5458. method = 'ohlc', npartitions = 5, freq = 'd', closed = 'right', label = 'left'
  5459.  
  5460. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5461. list(product(['count', 'mean', 'ohlc'],
  5462. [2, 5],
  5463. ['30T', 'h', 'd', 'w', 'M'],
  5464. ['right', 'left'],
  5465. ['right', 'left'])))
  5466. def test_series_resample(method, npartitions, freq, closed, label):
  5467. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5468. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5469. df = pd.Series(range(len(index)), index=index)
  5470. ds = dd.from_pandas(df, npartitions=npartitions)
  5471. # Series output
  5472. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5473.  
  5474. dask/dataframe/tseries/tests/test_resample.py:23:
  5475. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5476. dask/dataframe/core.py:982: in resample
  5477. return _resample(self, rule, how=how, closed=closed, label=label)
  5478. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5479.  
  5480. 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'))>
  5481. rule = 'd', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  5482. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f62d00afeb8>
  5483.  
  5484. def _resample(obj, rule, how, **kwargs):
  5485. resampler = Resampler(obj, rule, **kwargs)
  5486. if how is not None:
  5487. raise FutureWarning(("how in .resample() is deprecated "
  5488. "the new syntax is .resample(...)"
  5489. > ".{0}()").format(how))
  5490. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5491.  
  5492. dask/dataframe/tseries/resample.py:28: FutureWarning
  5493. _____________________________________ test_series_resample[ohlc-5-d-left-right] ______________________________________
  5494.  
  5495. method = 'ohlc', npartitions = 5, freq = 'd', closed = 'left', label = 'right'
  5496.  
  5497. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5498. list(product(['count', 'mean', 'ohlc'],
  5499. [2, 5],
  5500. ['30T', 'h', 'd', 'w', 'M'],
  5501. ['right', 'left'],
  5502. ['right', 'left'])))
  5503. def test_series_resample(method, npartitions, freq, closed, label):
  5504. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5505. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5506. df = pd.Series(range(len(index)), index=index)
  5507. ds = dd.from_pandas(df, npartitions=npartitions)
  5508. # Series output
  5509. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5510.  
  5511. dask/dataframe/tseries/tests/test_resample.py:23:
  5512. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5513. dask/dataframe/core.py:982: in resample
  5514. return _resample(self, rule, how=how, closed=closed, label=label)
  5515. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5516.  
  5517. 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'))>
  5518. rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  5519. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f161048>
  5520.  
  5521. def _resample(obj, rule, how, **kwargs):
  5522. resampler = Resampler(obj, rule, **kwargs)
  5523. if how is not None:
  5524. raise FutureWarning(("how in .resample() is deprecated "
  5525. "the new syntax is .resample(...)"
  5526. > ".{0}()").format(how))
  5527. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5528.  
  5529. dask/dataframe/tseries/resample.py:28: FutureWarning
  5530. ______________________________________ test_series_resample[ohlc-5-d-left-left] ______________________________________
  5531.  
  5532. method = 'ohlc', npartitions = 5, freq = 'd', closed = 'left', label = 'left'
  5533.  
  5534. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5535. list(product(['count', 'mean', 'ohlc'],
  5536. [2, 5],
  5537. ['30T', 'h', 'd', 'w', 'M'],
  5538. ['right', 'left'],
  5539. ['right', 'left'])))
  5540. def test_series_resample(method, npartitions, freq, closed, label):
  5541. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5542. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5543. df = pd.Series(range(len(index)), index=index)
  5544. ds = dd.from_pandas(df, npartitions=npartitions)
  5545. # Series output
  5546. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5547.  
  5548. dask/dataframe/tseries/tests/test_resample.py:23:
  5549. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5550. dask/dataframe/core.py:982: in resample
  5551. return _resample(self, rule, how=how, closed=closed, label=label)
  5552. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5553.  
  5554. 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'))>
  5555. rule = 'd', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  5556. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e5a7048>
  5557.  
  5558. def _resample(obj, rule, how, **kwargs):
  5559. resampler = Resampler(obj, rule, **kwargs)
  5560. if how is not None:
  5561. raise FutureWarning(("how in .resample() is deprecated "
  5562. "the new syntax is .resample(...)"
  5563. > ".{0}()").format(how))
  5564. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5565.  
  5566. dask/dataframe/tseries/resample.py:28: FutureWarning
  5567. _____________________________________ test_series_resample[ohlc-5-w-right-right] _____________________________________
  5568.  
  5569. method = 'ohlc', npartitions = 5, freq = 'w', closed = 'right', label = 'right'
  5570.  
  5571. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5572. list(product(['count', 'mean', 'ohlc'],
  5573. [2, 5],
  5574. ['30T', 'h', 'd', 'w', 'M'],
  5575. ['right', 'left'],
  5576. ['right', 'left'])))
  5577. def test_series_resample(method, npartitions, freq, closed, label):
  5578. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5579. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5580. df = pd.Series(range(len(index)), index=index)
  5581. ds = dd.from_pandas(df, npartitions=npartitions)
  5582. # Series output
  5583. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5584.  
  5585. dask/dataframe/tseries/tests/test_resample.py:23:
  5586. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5587. dask/dataframe/core.py:982: in resample
  5588. return _resample(self, rule, how=how, closed=closed, label=label)
  5589. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5590.  
  5591. 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'))>
  5592. rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  5593. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f208c18>
  5594.  
  5595. def _resample(obj, rule, how, **kwargs):
  5596. resampler = Resampler(obj, rule, **kwargs)
  5597. if how is not None:
  5598. raise FutureWarning(("how in .resample() is deprecated "
  5599. "the new syntax is .resample(...)"
  5600. > ".{0}()").format(how))
  5601. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5602.  
  5603. dask/dataframe/tseries/resample.py:28: FutureWarning
  5604. _____________________________________ test_series_resample[ohlc-5-w-right-left] ______________________________________
  5605.  
  5606. method = 'ohlc', npartitions = 5, freq = 'w', closed = 'right', label = 'left'
  5607.  
  5608. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5609. list(product(['count', 'mean', 'ohlc'],
  5610. [2, 5],
  5611. ['30T', 'h', 'd', 'w', 'M'],
  5612. ['right', 'left'],
  5613. ['right', 'left'])))
  5614. def test_series_resample(method, npartitions, freq, closed, label):
  5615. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5616. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5617. df = pd.Series(range(len(index)), index=index)
  5618. ds = dd.from_pandas(df, npartitions=npartitions)
  5619. # Series output
  5620. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5621.  
  5622. dask/dataframe/tseries/tests/test_resample.py:23:
  5623. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5624. dask/dataframe/core.py:982: in resample
  5625. return _resample(self, rule, how=how, closed=closed, label=label)
  5626. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5627.  
  5628. 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'))>
  5629. rule = 'w', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  5630. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f15efd0>
  5631.  
  5632. def _resample(obj, rule, how, **kwargs):
  5633. resampler = Resampler(obj, rule, **kwargs)
  5634. if how is not None:
  5635. raise FutureWarning(("how in .resample() is deprecated "
  5636. "the new syntax is .resample(...)"
  5637. > ".{0}()").format(how))
  5638. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5639.  
  5640. dask/dataframe/tseries/resample.py:28: FutureWarning
  5641. _____________________________________ test_series_resample[ohlc-5-w-left-right] ______________________________________
  5642.  
  5643. method = 'ohlc', npartitions = 5, freq = 'w', closed = 'left', label = 'right'
  5644.  
  5645. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5646. list(product(['count', 'mean', 'ohlc'],
  5647. [2, 5],
  5648. ['30T', 'h', 'd', 'w', 'M'],
  5649. ['right', 'left'],
  5650. ['right', 'left'])))
  5651. def test_series_resample(method, npartitions, freq, closed, label):
  5652. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5653. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5654. df = pd.Series(range(len(index)), index=index)
  5655. ds = dd.from_pandas(df, npartitions=npartitions)
  5656. # Series output
  5657. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5658.  
  5659. dask/dataframe/tseries/tests/test_resample.py:23:
  5660. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5661. dask/dataframe/core.py:982: in resample
  5662. return _resample(self, rule, how=how, closed=closed, label=label)
  5663. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5664.  
  5665. 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'))>
  5666. rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  5667. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629e82a080>
  5668.  
  5669. def _resample(obj, rule, how, **kwargs):
  5670. resampler = Resampler(obj, rule, **kwargs)
  5671. if how is not None:
  5672. raise FutureWarning(("how in .resample() is deprecated "
  5673. "the new syntax is .resample(...)"
  5674. > ".{0}()").format(how))
  5675. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5676.  
  5677. dask/dataframe/tseries/resample.py:28: FutureWarning
  5678. ______________________________________ test_series_resample[ohlc-5-w-left-left] ______________________________________
  5679.  
  5680. method = 'ohlc', npartitions = 5, freq = 'w', closed = 'left', label = 'left'
  5681.  
  5682. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5683. list(product(['count', 'mean', 'ohlc'],
  5684. [2, 5],
  5685. ['30T', 'h', 'd', 'w', 'M'],
  5686. ['right', 'left'],
  5687. ['right', 'left'])))
  5688. def test_series_resample(method, npartitions, freq, closed, label):
  5689. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5690. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5691. df = pd.Series(range(len(index)), index=index)
  5692. ds = dd.from_pandas(df, npartitions=npartitions)
  5693. # Series output
  5694. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5695.  
  5696. dask/dataframe/tseries/tests/test_resample.py:23:
  5697. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5698. dask/dataframe/core.py:982: in resample
  5699. return _resample(self, rule, how=how, closed=closed, label=label)
  5700. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5701.  
  5702. 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'))>
  5703. rule = 'w', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  5704. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f18a828>
  5705.  
  5706. def _resample(obj, rule, how, **kwargs):
  5707. resampler = Resampler(obj, rule, **kwargs)
  5708. if how is not None:
  5709. raise FutureWarning(("how in .resample() is deprecated "
  5710. "the new syntax is .resample(...)"
  5711. > ".{0}()").format(how))
  5712. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5713.  
  5714. dask/dataframe/tseries/resample.py:28: FutureWarning
  5715. _____________________________________ test_series_resample[ohlc-5-M-right-right] _____________________________________
  5716.  
  5717. method = 'ohlc', npartitions = 5, freq = 'M', closed = 'right', label = 'right'
  5718.  
  5719. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5720. list(product(['count', 'mean', 'ohlc'],
  5721. [2, 5],
  5722. ['30T', 'h', 'd', 'w', 'M'],
  5723. ['right', 'left'],
  5724. ['right', 'left'])))
  5725. def test_series_resample(method, npartitions, freq, closed, label):
  5726. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5727. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5728. df = pd.Series(range(len(index)), index=index)
  5729. ds = dd.from_pandas(df, npartitions=npartitions)
  5730. # Series output
  5731. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5732.  
  5733. dask/dataframe/tseries/tests/test_resample.py:23:
  5734. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5735. dask/dataframe/core.py:982: in resample
  5736. return _resample(self, rule, how=how, closed=closed, label=label)
  5737. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5738.  
  5739. 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'))>
  5740. rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'right'}
  5741. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f386d68>
  5742.  
  5743. def _resample(obj, rule, how, **kwargs):
  5744. resampler = Resampler(obj, rule, **kwargs)
  5745. if how is not None:
  5746. raise FutureWarning(("how in .resample() is deprecated "
  5747. "the new syntax is .resample(...)"
  5748. > ".{0}()").format(how))
  5749. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5750.  
  5751. dask/dataframe/tseries/resample.py:28: FutureWarning
  5752. _____________________________________ test_series_resample[ohlc-5-M-right-left] ______________________________________
  5753.  
  5754. method = 'ohlc', npartitions = 5, freq = 'M', closed = 'right', label = 'left'
  5755.  
  5756. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5757. list(product(['count', 'mean', 'ohlc'],
  5758. [2, 5],
  5759. ['30T', 'h', 'd', 'w', 'M'],
  5760. ['right', 'left'],
  5761. ['right', 'left'])))
  5762. def test_series_resample(method, npartitions, freq, closed, label):
  5763. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5764. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5765. df = pd.Series(range(len(index)), index=index)
  5766. ds = dd.from_pandas(df, npartitions=npartitions)
  5767. # Series output
  5768. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5769.  
  5770. dask/dataframe/tseries/tests/test_resample.py:23:
  5771. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5772. dask/dataframe/core.py:982: in resample
  5773. return _resample(self, rule, how=how, closed=closed, label=label)
  5774. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5775.  
  5776. 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'))>
  5777. rule = 'M', how = 'ohlc', kwargs = {'closed': 'right', 'label': 'left'}
  5778. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629c19c320>
  5779.  
  5780. def _resample(obj, rule, how, **kwargs):
  5781. resampler = Resampler(obj, rule, **kwargs)
  5782. if how is not None:
  5783. raise FutureWarning(("how in .resample() is deprecated "
  5784. "the new syntax is .resample(...)"
  5785. > ".{0}()").format(how))
  5786. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5787.  
  5788. dask/dataframe/tseries/resample.py:28: FutureWarning
  5789. _____________________________________ test_series_resample[ohlc-5-M-left-right] ______________________________________
  5790.  
  5791. method = 'ohlc', npartitions = 5, freq = 'M', closed = 'left', label = 'right'
  5792.  
  5793. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5794. list(product(['count', 'mean', 'ohlc'],
  5795. [2, 5],
  5796. ['30T', 'h', 'd', 'w', 'M'],
  5797. ['right', 'left'],
  5798. ['right', 'left'])))
  5799. def test_series_resample(method, npartitions, freq, closed, label):
  5800. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5801. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5802. df = pd.Series(range(len(index)), index=index)
  5803. ds = dd.from_pandas(df, npartitions=npartitions)
  5804. # Series output
  5805. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5806.  
  5807. dask/dataframe/tseries/tests/test_resample.py:23:
  5808. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5809. dask/dataframe/core.py:982: in resample
  5810. return _resample(self, rule, how=how, closed=closed, label=label)
  5811. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5812.  
  5813. 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'))>
  5814. rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'right'}
  5815. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f194860>
  5816.  
  5817. def _resample(obj, rule, how, **kwargs):
  5818. resampler = Resampler(obj, rule, **kwargs)
  5819. if how is not None:
  5820. raise FutureWarning(("how in .resample() is deprecated "
  5821. "the new syntax is .resample(...)"
  5822. > ".{0}()").format(how))
  5823. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5824.  
  5825. dask/dataframe/tseries/resample.py:28: FutureWarning
  5826. ______________________________________ test_series_resample[ohlc-5-M-left-left] ______________________________________
  5827.  
  5828. method = 'ohlc', npartitions = 5, freq = 'M', closed = 'left', label = 'left'
  5829.  
  5830. @pytest.mark.parametrize(['method', 'npartitions', 'freq', 'closed', 'label'],
  5831. list(product(['count', 'mean', 'ohlc'],
  5832. [2, 5],
  5833. ['30T', 'h', 'd', 'w', 'M'],
  5834. ['right', 'left'],
  5835. ['right', 'left'])))
  5836. def test_series_resample(method, npartitions, freq, closed, label):
  5837. index = pd.date_range('1-1-2000', '2-15-2000', freq='h')
  5838. index = index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
  5839. df = pd.Series(range(len(index)), index=index)
  5840. ds = dd.from_pandas(df, npartitions=npartitions)
  5841. # Series output
  5842. > result = ds.resample(freq, how=method, closed=closed, label=label)
  5843.  
  5844. dask/dataframe/tseries/tests/test_resample.py:23:
  5845. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5846. dask/dataframe/core.py:982: in resample
  5847. return _resample(self, rule, how=how, closed=closed, label=label)
  5848. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5849.  
  5850. 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'))>
  5851. rule = 'M', how = 'ohlc', kwargs = {'closed': 'left', 'label': 'left'}
  5852. resampler = <dask.dataframe.tseries.resample.Resampler object at 0x7f629f26ea58>
  5853.  
  5854. def _resample(obj, rule, how, **kwargs):
  5855. resampler = Resampler(obj, rule, **kwargs)
  5856. if how is not None:
  5857. raise FutureWarning(("how in .resample() is deprecated "
  5858. "the new syntax is .resample(...)"
  5859. > ".{0}()").format(how))
  5860. E FutureWarning: how in .resample() is deprecated the new syntax is .resample(...).ohlc()
  5861.  
  5862. dask/dataframe/tseries/resample.py:28: FutureWarning
  5863. ====================== 136 failed, 634 passed, 24 skipped, 5 xfailed, 1 error in 44.21 seconds =======================
  5864. ==> ERROR: A failure occurred in check().
  5865. Aborting...
  5866. :: failed to build python-dask package(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement