Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc string for pandas.Timestamp.max, pandas.Timestamp.min #59744

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
d3eda3c
Changes to fix docstring issue with pandas.Timestamp.hour
NavaneetthaSundararaj Aug 11, 2024
55b11ef
Merge branch 'main' into main
NavaneetthaSundararaj Aug 14, 2024
05d0167
Merge branch 'main' into main
NavaneetthaSundararaj Aug 23, 2024
ede2e2d
fix ci
NavaneetthaSundararaj Aug 23, 2024
887f5fe
changes to add min,max and microsec
NavaneetthaSundararaj Aug 23, 2024
224e1ba
fix ci
NavaneetthaSundararaj Aug 23, 2024
d3d9943
Merge branch 'main' into main
NavaneetthaSundararaj Aug 23, 2024
eb9d386
Merge branch 'main' into main
NavaneetthaSundararaj Aug 30, 2024
7ac2ecb
fix merge conflict
NavaneetthaSundararaj Aug 30, 2024
18a1adc
fix merge conflict
NavaneetthaSundararaj Aug 30, 2024
646dc9f
remove hour and microsecond
NavaneetthaSundararaj Aug 30, 2024
b615487
Merge branch 'main' into main
NavaneetthaSundararaj Aug 30, 2024
89285c2
remove hour and microsecond
NavaneetthaSundararaj Aug 30, 2024
9047108
fix CI
NavaneetthaSundararaj Aug 30, 2024
d8ad329
remove return statement
NavaneetthaSundararaj Aug 30, 2024
d586f72
Merge branch 'main' into main
NavaneetthaSundararaj Sep 3, 2024
7b131c0
Merge branch 'pandas-dev:main' into main
NavaneetthaSundararaj Sep 6, 2024
b72042e
changes to test
NavaneetthaSundararaj Sep 6, 2024
dfea777
Merge branch 'main' into main
NavaneetthaSundararaj Sep 7, 2024
e16a327
min and max revert
NavaneetthaSundararaj Sep 7, 2024
be7526a
check for attribute
NavaneetthaSundararaj Sep 7, 2024
c553995
Merge branch 'main' into attribute_test
NavaneetthaSundararaj Sep 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timedelta.resolution PR02" \
-i "pandas.Timedelta.to_timedelta64 SA01" \
-i "pandas.TimedeltaIndex.to_pytimedelta RT03,SA01" \
-i "pandas.Timestamp.max PR02" \
-i "pandas.Timestamp.min PR02" \
-i "pandas.Timestamp.nanosecond GL08" \
-i "pandas.Timestamp.resolution PR02" \
-i "pandas.Timestamp.tzinfo GL08" \
Expand Down
13 changes: 13 additions & 0 deletions pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,19 @@ class Timestamp(_Timestamp):
datetime-like corresponds to the first (0) or the second time (1)
the wall clock hits the ambiguous time.

Attributes
----------
max : Timestamp
A constant that represents the maximum valid date and time value.
This property returns the highest datetime value that can be represented
by a pandas.Timestamp object, which is equivalent to
pd.Timestamp('2262-04-11 23:47:16.854775807').
min : Timestamp
A constant that represents the minimum valid date and time value.
This property returns the earliest datetime value that can be represented
by a pandas.Timestamp object, which is equivalent to
pd.Timestamp('1677-09-21 00:12:43.145224193').

See Also
--------
Timedelta : Represents a duration, the difference between two dates or times.
Expand Down
Loading