Skip to content

CI: MacPython failing test_consistency_with_window #35148

@TomAugspurger

Description

@TomAugspurger

https://dev.azure.com/pandas-dev/pandas-wheels/_build/results?buildId=38672&view=logs&j=c0130b29-789d-5a3c-6978-10796a508a7f&t=e120bc6c-1f5e-5a41-8f0a-1d992cd2fbfb&l=1286

 def test_consistency_with_window(): # consistent return values with window df = test_frame index_array = self.index_array indexer = self.rolling_indexer( index_array=index_array, window_size=self.window_size, ) start, end = indexer.get_window_bounds( len(indicies), min_periods, center, closed ) start = start.astype(np.int64) end = end.astype(np.int64) # Cannot use groupby_indicies as they might not be monotonic with the object # we're rolling over window_indicies = np.arange( window_indicies_start, window_indicies_start + len(indicies), ) window_indicies_start += len(indicies) # Extend as we'll be slicing window like [start, end) window_indicies = np.append( window_indicies, [window_indicies[-1] + 1] ).astype(np.int64) > start_arrays.append(window_indicies.take(start)) E TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe' test_venv\lib\site-packages\pandas\core\window\indexers.py:318: TypeError

cc @mroeschke if you know where to look / who to ping. I haven't looked yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    32bit32-bit systemsCIContinuous IntegrationWindowrolling, ewma, expanding

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions