File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
73
73
-i " pandas.NA SA01" \
74
74
-i " pandas.Period.freq GL08" \
75
75
-i " pandas.Period.ordinal GL08" \
76
- -i " pandas.Period.strftime PR01,SA01" \
77
76
-i " pandas.Period.to_timestamp SA01" \
78
77
-i " pandas.PeriodDtype SA01" \
79
78
-i " pandas.PeriodDtype.freq SA01" \
Original file line number Diff line number Diff line change @@ -2755,6 +2755,27 @@ cdef class _Period(PeriodMixin):
2755
2755
| ``%%`` | A literal ``'%'`` character. | |
2756
2756
+-----------+--------------------------------+-------+
2757
2757
2758
+ The `strftime` method provides a way to represent a :class:`Period`
2759
+ object as a string in a specified format. This is particularly useful
2760
+ when displaying date and time data in different locales or customized
2761
+ formats , suitable for reports or user interfaces. It extends the standard
2762
+ Python string formatting capabilities with additional directives specific
2763
+ to `pandas`, accommodating features like fiscal years and precise
2764
+ sub-second components.
2765
+
2766
+ Parameters
2767
+ ----------
2768
+ fmt : str or None
2769
+ String containing the desired format directives. If ``None``, the
2770
+ format is determined based on the Period's frequency.
2771
+
2772
+ See Also
2773
+ --------
2774
+ Timestamp.strftime : Return a formatted string of the Timestamp.
2775
+ to_datetime : Convert argument to datetime.
2776
+ time.strftime : Format a time object as a string according to a
2777
+ specified format string in the standard Python library.
2778
+
2758
2779
Notes
2759
2780
-----
2760
2781
You can’t perform that action at this time.
0 commit comments