-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Fix read_csv index dtype override #59219
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
Conversation
hey, thanks for the ping and the PR - I'm not really familiar with this part of the codebase. I can take a look but I'm afraid there are other priorities at the moment |
if isinstance(data, np.ndarray) and isinstance(conv_data, range) | ||
else None | ||
) | ||
return Index(conv_data, dtype=dtype, name=names) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#59077 (comment)
I think this is the best place to add in the explicit dtype after the possible conversion to python native range
type.
@mroeschke Hi Matthew, can you help take a look at my pr for this? |
Sorry I just merged #59316 which overlaps with your fix here. Thanks for the contribution but going to close now that the issue is fixed |
Added type annotations to new arguments/methods/functions.doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.