Skip to content

Commit c45bc9a

Browse files
authored
STYLE: enable pylint nan-comparison (#49407)
1 parent 3872572 commit c45bc9a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/tests/series/test_constructors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_constructor(self, datetime_series):
134134
# Mixed type Series
135135
mixed = Series(["hello", np.NaN], index=[0, 1])
136136
assert mixed.dtype == np.object_
137-
assert mixed[1] is np.NaN
137+
assert np.isnan(mixed[1])
138138

139139
assert not empty_series.index._is_all_dates
140140
with tm.assert_produces_warning(FutureWarning):

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ disable = [
160160
"invalid-overridden-method",
161161
"keyword-arg-before-vararg",
162162
"method-cache-max-size-none",
163-
"nan-comparison",
164163
"non-parent-init-called",
165164
"overridden-final-method",
166165
"pointless-statement",

0 commit comments

Comments
 (0)