From 4c3a21b88adaa9c5db52aa75b1d1f1d0bf500451 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 25 Apr 2024 11:22:11 +0530 Subject: [PATCH 1/3] DOC: add SA01 to pandas.DatetimeIndex.freqstr --- pandas/core/arrays/datetimelike.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ff8b16b3361ee..ab17ae43215d2 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -875,6 +875,11 @@ def freqstr(self) -> str | None: """ Return the frequency object as a string if it's set, otherwise None. + See Also + -------- + DatetimeIndex.inferred_freq : Returns a string representing a frequency + generated by infer_freq. + Examples -------- For DatetimeIndex: From 8eac00d4d1240aadd6ea9a1a7b8e2b213d02b509 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 25 Apr 2024 11:22:40 +0530 Subject: [PATCH 2/3] DOC: remove pandas.DatetimeIndex.freqstr --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bf7423dfe5825..52236928c3bd5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -102,7 +102,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DataFrame.to_markdown SA01" \ -i "pandas.DataFrame.to_parquet RT03" \ -i "pandas.DataFrame.var PR01,RT03,SA01" \ - -i "pandas.DatetimeIndex.freqstr SA01" \ -i "pandas.DatetimeIndex.indexer_at_time PR01,RT03" \ -i "pandas.DatetimeIndex.indexer_between_time RT03" \ -i "pandas.DatetimeIndex.snap PR01,RT03" \ From 8e4c7f88670b07496785394e00bd6a77bdfa7680 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 25 Apr 2024 15:50:19 +0530 Subject: [PATCH 3/3] DOC: removed pandas.PeriodIndex.freqstr --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 52236928c3bd5..e47dbf2e1cc87 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -215,7 +215,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.PeriodIndex.dayofyear SA01" \ -i "pandas.PeriodIndex.days_in_month SA01" \ -i "pandas.PeriodIndex.daysinmonth SA01" \ - -i "pandas.PeriodIndex.freqstr SA01" \ -i "pandas.PeriodIndex.from_fields PR07,SA01" \ -i "pandas.PeriodIndex.from_ordinals SA01" \ -i "pandas.PeriodIndex.hour SA01" \