Skip to content

Commit ad80d4a

Browse files
authored
CLN clean ups in code (#36570)
* remove redundant paranthesis * parameter copy not used * remove whitespace and unused argument * clean ups in general * changes black * revert changes * close if elif with else * revert pytables * revert parsin
1 parent 6ec0f62 commit ad80d4a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

pandas/core/arrays/datetimelike.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ def _add_timedelta_arraylike(self, other):
11861186
self_i8, other_i8, arr_mask=self._isnan, b_mask=other._isnan
11871187
)
11881188
if self._hasnans or other._hasnans:
1189-
mask = (self._isnan) | (other._isnan)
1189+
mask = self._isnan | other._isnan
11901190
new_values[mask] = iNaT
11911191

11921192
return type(self)(new_values, dtype=self.dtype)

pandas/core/arrays/datetimes.py

+1
Original file line numberDiff line numberDiff line change
@@ -2010,6 +2010,7 @@ def objects_to_datetime64ns(
20102010
utc : bool, default False
20112011
Whether to convert timezone-aware timestamps to UTC.
20122012
errors : {'raise', 'ignore', 'coerce'}
2013+
require_iso8601 : bool, default False
20132014
allow_object : bool
20142015
Whether to return an object-dtype ndarray instead of raising if the
20152016
data contains more than one timezone.

pandas/core/arrays/period.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ def _sub_period_array(self, other):
648648

649649
new_values = np.array([self.freq.base * x for x in new_values])
650650
if self._hasnans or other._hasnans:
651-
mask = (self._isnan) | (other._isnan)
651+
mask = self._isnan | other._isnan
652652
new_values[mask] = NaT
653653
return new_values
654654

0 commit comments

Comments
 (0)