Open vignkri opened 2 years ago
Amazing @vignkri !
Super excited to get built-in support for this :)
So for each of the tests you list above, it would help if you could provide code snippets that implement the checks using the vanilla pandas API (ideally on a pd.Series
of the DateTime
, Period
, and Timedelta
dtypes)... and once we have those it'll be super straight-forward to add them to the pa.Check
class namespace.
Hello !
Any update on this topic I would be very interested to use this kind of feature.
I would add some additional tests for DatetimeIndex
:
I would also love to get this feature added! Anything that's blocking getting this done? I can provide snippets for some of these tests if helpful
Contributions welcome 🤗
Is your feature request related to a problem? Please describe.
DataFrames indexed by either DateTimeIndex or derived indexes need to have specialised tests verifications. There are 3 different types of time based indexes supported in Pandas.
They have different internal type structure depending on the type. Adding built-in checks on top of the different indexes could be useful.
Describe the solution you'd like
frequency
property available on the DateTimeIndexfrequency
can be implicitly converted to aPeriodIndex
and then the index is transformed to an explicit PeriodIndexNaN
.2022-04-29T00:00:00+02:00
- in UTC2022-04-28T22:00:00+00:00
2022-04-29T23:00:00+02:00
- in UTC 2022-04-29T21:00:00+00:00`.Describe alternatives you've considered
.shape
property based on the property of the data being accessedAdditional context Add any other context or screenshots about the feature request here.
Edits