COMPAT: periods needs coercion to np.int64 in _generate_regular_range (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

pandas-dev / pandas Public

Additional navigation options

New issue

New issue

Closed

#9078

Closed

COMPAT: periods needs coercion to np.int64 in _generate_regular_range

#8943

#9078

Labels

Compatpandas objects compatability with Numpy or Python functions

Milestone

0.16.0

@jreback

Description

@jreback

jreback

opened

on Nov 30, 2014

https://github.com/pydata/pandas/blob/master/pandas/tseries/index.py#L1768

a simple np.int64(periods) will suffice

(and tests of course)

This needs to guaranteed to be int64 as a result (e.g. if this is in32 it will have an internal overflow which will make it have a valid but weird result)

Metadata

Metadata

Assignees

No one assigned

Labels

Compatpandas objects compatability with Numpy or Python functions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions