Feature Type
-
[X] Adding new functionality to pandas
-
[X] Changing existing functionality in pandas
-
[ ] Removing existing functionality in pandas
Problem Description
I wish I could use pandas to extract all the components of columns/series of type datetime like for timedelta columns.
Feature Description
The feature exists for timedelta ( read the doc ) . It might be interesting to add parameters to exclude some output feature or to set a suffix .
Alternative Solutions
The feature exists for timedelta ( read the doc )
Additional Context
The feature exists for timedelta ( read the doc ) but not for datetime series while it might be very helpful to extract date features from datetime series easily and feed Machine Learning with it.
_ = train.loc[:, 'Policy End Date']
_.dt.components
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
[<ipython-input-32-171eb7443229>](https://localhost:8080/#) in <module>
1 _ = train.loc[:, 'Policy End Date']
----> 2 _.dt.components
AttributeError: 'DatetimeProperties' object has no attribute 'components'
Comment From: jgarba
Take
Comment From: topper-123
This is a duplicate of #44933, so closing. Discussion can continue in #44933.