Skip to content
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

Always use native Python types for list outputs #101

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Conversation

mwtoews
Copy link
Owner

@mwtoews mwtoews commented Jul 3, 2024

These differences were only noticed with NumPy 2.0, but have always been present.

Demo:

In [1]: import pandas as pd

In [2]: s = pd.Series([1, 2])

In [3]: dict(s)
Out[3]: {0: np.int64(1), 1: np.int64(2)}

In [4]: s.to_dict()
Out[4]: {0: 1, 1: 2}

@mwtoews mwtoews merged commit 81ef345 into main Jul 3, 2024
5 checks passed
@mwtoews mwtoews deleted the numpy-2-items branch July 3, 2024 02:02
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