Skip to content

CI: MacPython failing test_consistency_with_window #35148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TomAugspurger opened this issue Jul 6, 2020 · 0 comments · Fixed by #35875
Closed

CI: MacPython failing test_consistency_with_window #35148

TomAugspurger opened this issue Jul 6, 2020 · 0 comments · Fixed by #35875
Labels
32bit 32-bit systems CI Continuous Integration Window rolling, ewma, expanding
Milestone

Comments

@TomAugspurger
Copy link
Contributor

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.

@TomAugspurger TomAugspurger added Bug Needs Triage Issue that has not been reviewed by a pandas team member and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Jul 6, 2020
@jreback jreback added 32bit 32-bit systems CI Continuous Integration Window rolling, ewma, expanding labels Aug 24, 2020
@jreback jreback added this to the 1.2 milestone Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32bit 32-bit systems CI Continuous Integration Window rolling, ewma, expanding
Projects
None yet
2 participants