Skip to content

Use np.ravel on input array due to Pandas 3.0.0#632

Merged
santisoler merged 1 commit intomainfrom
ravel-pandas-3
Jan 27, 2026
Merged

Use np.ravel on input array due to Pandas 3.0.0#632
santisoler merged 1 commit intomainfrom
ravel-pandas-3

Conversation

@santisoler
Copy link
Member

Pandas 3.0.0 deprecated the Series.ravel() method, meaning that when a Series gets passed to a Harmonica function that needs to ravel it, it cannot do it through the .ravel() method. Instead, use the np.ravel() function that will ensure ravelling it, but also will always return a Numpy array.

Pandas 3.0.0 deprecated the `Series.ravel()` method, meaning that when
a Series gets passed to a Harmonica function that needs to ravel it, it
cannot do it through the `.ravel()` method. Instead, use the
`np.ravel()` function that will ensure ravelling it, but also will
always return a Numpy array.
@santisoler santisoler merged commit 5ae2eed into main Jan 27, 2026
20 checks passed
@santisoler santisoler deleted the ravel-pandas-3 branch January 27, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant