Skip to content

Commit 54441fe

Browse files
authored
DOC: replace deprecated freqs 'T', 'S', 'A' in docs and comments (#56464)
replace depr freqs T, S, A in comments and docs
1 parent 14cf864 commit 54441fe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pandas/_libs/tslibs/period.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2701,8 +2701,8 @@ class Period(_Period):
27012701
year=None, month=None, quarter=None, day=None,
27022702
hour=None, minute=None, second=None):
27032703
# freq points to a tuple (base, mult); base is one of the defined
2704-
# periods such as A, Q, etc. Every five minutes would be, e.g.,
2705-
# ('T', 5) but may be passed in as a string like '5T'
2704+
# periods such as Y, Q, etc. Every five minutes would be, e.g.,
2705+
# ('min', 5) but may be passed in as a string like '5min'
27062706

27072707
# ordinal is the period offset from the gregorian proleptic epoch
27082708

pandas/core/arrays/period.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def to_timestamp(self, freq=None, how: str = "start") -> DatetimeArray:
623623
----------
624624
freq : str or DateOffset, optional
625625
Target frequency. The default is 'D' for week or longer,
626-
'S' otherwise.
626+
's' otherwise.
627627
how : {'s', 'e', 'start', 'end'}
628628
Whether to use the start or end of the time period being converted.
629629

pandas/tests/io/json/test_json_table_schema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ def test_comprehensive(self):
801801
"A": [1, 2, 3, 4],
802802
"B": ["a", "b", "c", "c"],
803803
"C": pd.date_range("2016-01-01", freq="d", periods=4),
804-
# 'D': pd.timedelta_range('1H', periods=4, freq='T'),
804+
# 'D': pd.timedelta_range('1h', periods=4, freq='min'),
805805
"E": pd.Series(pd.Categorical(["a", "b", "c", "c"])),
806806
"F": pd.Series(pd.Categorical(["a", "b", "c", "c"], ordered=True)),
807807
"G": [1.1, 2.2, 3.3, 4.4],

0 commit comments

Comments
 (0)