-
-
Notifications
You must be signed in to change notification settings - Fork 157
Gh1318 defaults p3 #1569
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
base: main
Are you sure you want to change the base?
Gh1318 defaults p3 #1569
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -180,32 +180,32 @@ class _DatetimeRoundingMethods(Generic[_DTTimestampTimedeltaReturnType]): | |||||||||||||||
| def round( | ||||||||||||||||
| self, | ||||||||||||||||
| freq: Frequency | None, | ||||||||||||||||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = ..., | ||||||||||||||||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = "raise", | ||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
and also for the other two cases |
||||||||||||||||
| nonexistent: ( | ||||||||||||||||
| Literal["shift_forward", "shift_backward", "NaT", "raise"] | ||||||||||||||||
| | timedelta | ||||||||||||||||
| | Timedelta | ||||||||||||||||
| ) = ..., | ||||||||||||||||
| ) = "raise", | ||||||||||||||||
|
Comment on lines
184
to
+188
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
and also for the other two cases |
||||||||||||||||
| ) -> _DTTimestampTimedeltaReturnType: ... | ||||||||||||||||
| def floor( | ||||||||||||||||
| self, | ||||||||||||||||
| freq: Frequency | None, | ||||||||||||||||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = ..., | ||||||||||||||||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = "raise", | ||||||||||||||||
| nonexistent: ( | ||||||||||||||||
| Literal["shift_forward", "shift_backward", "NaT", "raise"] | ||||||||||||||||
| | timedelta | ||||||||||||||||
| | Timedelta | ||||||||||||||||
| ) = ..., | ||||||||||||||||
| ) = "raise", | ||||||||||||||||
| ) -> _DTTimestampTimedeltaReturnType: ... | ||||||||||||||||
| def ceil( | ||||||||||||||||
| self, | ||||||||||||||||
| freq: Frequency | None, | ||||||||||||||||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = ..., | ||||||||||||||||
| ambiguous: Literal["raise", "infer", "NaT"] | bool | np_ndarray_bool = "raise", | ||||||||||||||||
| nonexistent: ( | ||||||||||||||||
| Literal["shift_forward", "shift_backward", "NaT", "raise"] | ||||||||||||||||
| | timedelta | ||||||||||||||||
| | Timedelta | ||||||||||||||||
| ) = ..., | ||||||||||||||||
| ) = "raise", | ||||||||||||||||
| ) -> _DTTimestampTimedeltaReturnType: ... | ||||||||||||||||
|
|
||||||||||||||||
| _DTNormalizeReturnType = TypeVar( | ||||||||||||||||
|
|
@@ -231,14 +231,14 @@ class _DatetimeLikeNoTZMethods( | |||||||||||||||
| def tz_localize( | ||||||||||||||||
| self, | ||||||||||||||||
| tz: TimeZones, | ||||||||||||||||
| ambiguous: TimeAmbiguous = ..., | ||||||||||||||||
| nonexistent: TimeNonexistent = ..., | ||||||||||||||||
| ambiguous: TimeAmbiguous = "raise", | ||||||||||||||||
| nonexistent: TimeNonexistent = "raise", | ||||||||||||||||
| ) -> _DTNormalizeReturnType: ... | ||||||||||||||||
| def tz_convert(self, tz: TimeZones) -> _DTNormalizeReturnType: ... | ||||||||||||||||
| def normalize(self) -> _DTNormalizeReturnType: ... | ||||||||||||||||
| def strftime(self, date_format: str) -> _DTStrKindReturnType: ... | ||||||||||||||||
| def month_name(self, locale: str | None = ...) -> _DTStrKindReturnType: ... | ||||||||||||||||
| def day_name(self, locale: str | None = ...) -> _DTStrKindReturnType: ... | ||||||||||||||||
| def month_name(self, locale: str | None = None) -> _DTStrKindReturnType: ... | ||||||||||||||||
| def day_name(self, locale: str | None = None) -> _DTStrKindReturnType: ... | ||||||||||||||||
|
|
||||||||||||||||
| class _DatetimeNoTZProperties( | ||||||||||||||||
| _DatetimeLikeOps[ | ||||||||||||||||
|
|
@@ -359,12 +359,12 @@ class _PeriodProperties( | |||||||||||||||
| def to_timestamp( | ||||||||||||||||
| self, | ||||||||||||||||
| freq: PeriodFrequency | None = None, | ||||||||||||||||
| how: TimestampConvention = ..., | ||||||||||||||||
| how: TimestampConvention = "start", | ||||||||||||||||
| ) -> _PeriodDTAReturnTypes: ... | ||||||||||||||||
| def asfreq( | ||||||||||||||||
| self, | ||||||||||||||||
| freq: PeriodFrequency | None = None, | ||||||||||||||||
| how: Literal["E", "END", "FINISH", "S", "START", "BEGIN"] = ..., | ||||||||||||||||
| how: Literal["E", "END", "FINISH", "S", "START", "BEGIN"] = "E", | ||||||||||||||||
| ) -> _PeriodPAReturnTypes: ... | ||||||||||||||||
|
|
||||||||||||||||
| class PeriodIndexFieldOps( | ||||||||||||||||
|
|
@@ -432,7 +432,7 @@ class DatetimeIndexProperties( | |||||||||||||||
| def tzinfo(self) -> _tzinfo | None: ... | ||||||||||||||||
| def to_pydatetime(self) -> np_1darray_object: ... | ||||||||||||||||
| def std( | ||||||||||||||||
| self, axis: int | None = ..., ddof: int = ..., skipna: bool = ... | ||||||||||||||||
| self, axis: int | None = None, ddof: int = 1, skipna: bool = True | ||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://pandas.pydata.org/docs/dev/reference/api/pandas.DatetimeIndex.std.html
Suggested change
|
||||||||||||||||
| ) -> Timedelta: ... | ||||||||||||||||
|
|
||||||||||||||||
| class TimedeltaIndexProperties( | ||||||||||||||||
|
|
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.