-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Improve general datetime functions (#352)
* TYP: Improve infer_freq * TYP: Imrprove timedelta_range * TYP: Imrprove period_range * TYP: Improve date_range and bdate_range * TYP: Improve to_timedelta * TYP: Improve to_datetime * Small fixes * TST: Add tests for to_timedelta * TST/ENH: Add tests and overload for bdate_range * TST/ENH: Add tests and improve period_range * TST: Add tests * TST: Add check and assert type, add more tests * CLN: Remove unnecessary TODO * ENH: Improve timestamp convertible Co-authored-by: Kevin Sheppard <kevin.sheppard@gmail.com>
- Loading branch information
Showing
9 changed files
with
519 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
from pandas import ( | ||
DatetimeIndex, | ||
Series, | ||
TimedeltaIndex, | ||
) | ||
|
||
from pandas.tseries.offsets import DateOffset as DateOffset | ||
|
||
def get_period_alias(offset_str: str) -> str | None: ... | ||
def to_offset(freq) -> DateOffset | None: ... | ||
def get_offset(name: str) -> DateOffset: ... | ||
def infer_freq(index) -> str | None: ... | ||
def infer_freq(index: Series | DatetimeIndex | TimedeltaIndex) -> str | None: ... |
Oops, something went wrong.