You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yeah these should be the same. construction of PeriodIndex from integers must be to the codes. Other dtypes can be interpreted (e.g. strings). We could have some flexibility in a to_period method (which can/should be the public interface).
When we pass a list of numbers, it parsed as date as it is. The same values is regarded as
ordinal
if it is passed as an array.Code Sample, a copy-pastable example if possible
Expected Output
Because
PeriodIndex
has adata
andordinal
arg, it should be regarded as:data
kwdordinal
if it is passed viaordinal
kwdoutput of
pd.show_versions()
on current master.
The text was updated successfully, but these errors were encountered: