Skip to content

Commit

Permalink
DOC: fix SA01, ES01 for pandas.Timestamp.tz (#59097)
Browse files Browse the repository at this point in the history
* DOC: fix SA01, ES01 for pandas.Timestamp.tz

* DOC: fix SA01, ES01 for pandas.Timestamp.tz
  • Loading branch information
tuhinsharma121 committed Jun 25, 2024
1 parent 46916db commit 288f47a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.to_period PR01,SA01" \
-i "pandas.Timestamp.today SA01" \
-i "pandas.Timestamp.toordinal SA01" \
-i "pandas.Timestamp.tz SA01" \
-i "pandas.Timestamp.tz_localize SA01" \
-i "pandas.Timestamp.tzinfo GL08" \
-i "pandas.Timestamp.tzname SA01" \
Expand Down
11 changes: 11 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,17 @@ timedelta}, default 'raise'
"""
Alias for tzinfo.
The `tz` property provides a simple and direct way to retrieve the timezone
information of a `Timestamp` object. It is particularly useful when working
with time series data that includes timezone information, allowing for easy
access and manipulation of the timezone context.
See Also
--------
Timestamp.tzinfo : Returns the timezone information of the Timestamp.
Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
Timestamp.tz_localize : Localize the Timestamp to a timezone.
Examples
--------
>>> ts = pd.Timestamp(1584226800, unit='s', tz='Europe/Stockholm')
Expand Down

0 comments on commit 288f47a

Please sign in to comment.