Comments (2)
This loss of information does happen with the DateTimeIndex and not with the PeriodIndex. Reason is that the freq
is an attribute of each value in the PeriodIndex. With the DateTimeIndex, the freq, etc. get lost when calling get_level_values()
, due to the shallow copying logic.
The DateTimeIndex is the only index type with this edge case.
from pandas.
Thanks. Is this the shallow copy you're referring to?
return lev._shallow_copy(filled, name=name)
from pandas.
Related Issues (20)
- ENH: Series.map() that works with a dictionary of key-list pairs HOT 1
- ENH: function to concatenate columns with a separator HOT 1
- BUG: Setting values on `DataFrame` with multi-index `.loc(axis=0)` access adds columns
- BUG: to_datetime timestamp parsing in 2.x HOT 1
- ENH: adding jsonline output format HOT 2
- BUG: Inconsistent `RollingGroupby` Behaviour
- When excel cell with 0x005F_FFFF, pandas read excel with wrong output read value 0FFFF HOT 7
- BUG: Integers with extreme values are incorrectly interpreted as missing when importing older versions (pre-version 8) of the Stata dta file format
- BUG: read_csv file handle not closed after error HOT 3
- BUG: pandas groupby returns different results when one and two groups HOT 2
- BUILD: Unable to install pandas on 32bit python due to mesons build error which requires x86_64. will not allow x86 (32 bit version of python 3.12) HOT 2
- ENH: Consistent naming conventions for string dtype aliases HOT 17
- QST: loc returns matrix with one row when index is not strictly unique
- BUG: df.where(series, axis=1) always results in TypeError HOT 2
- BUG: incorrect aggregation of dataframe when using UDF with kwarg HOT 3
- BUG: Casting dtype of large datetime values raises an error inconsistent with resolution HOT 3
- BUG: Pandas does not recognise older missing value code for double when reading Stata files prior to 108 (Stata 6) format
- Potential regression induced by "PERF: Series(dict) returns RangeIndex when possible" HOT 1
- BUG: pd.isna handles np.nan inconsistently between numpy and extension / arrow types
- BUG: pyarrow dictionary type ordered argument not respected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas.