Skip to content

BUG: Series(range_obj_outside_i8_bounds) #41579

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

Merged
merged 2 commits into from
May 24, 2021

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel added Bug Constructors Series/DataFrame/Index/pd.array Constructors labels May 20, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rebase as well as some questions

"""
# GH#30171 perf avoid realizing range as a list in np.array
try:
arr = np.arange(rng.start, rng.stop, rng.step, dtype="int64")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this very simliar to maybe_cast_to_integer_array and generate_regular_range

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe_cast_to_integer_array no, thats the crux of #40110

generate_regular_range conceptually, but they take different args so ill have to take a closer look

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok as long as its on the refactor / restructure list

@jreback jreback added this to the 1.3 milestone May 21, 2021
@simonjayhawkins simonjayhawkins merged commit 441beef into pandas-dev:master May 24, 2021
@simonjayhawkins
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the bug-range-int64 branch May 24, 2021 19:02
TLouf pushed a commit to TLouf/pandas that referenced this pull request Jun 1, 2021
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Constructors Series/DataFrame/Index/pd.array Constructors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Series(range(...)) fails when range contains values not supported by int64
3 participants