Skip to content

Commit 32e3206

Browse files
committed
changed to numpy array of integers
1 parent 4964c39 commit 32e3206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/dtypes/test_dtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,6 @@ def test_categorical_nan_no_dtype_conversion():
12521252
expected = pd.DataFrame({"a": Categorical([1], [1]), "b": [1]})
12531253
assert df["a"].dtype == "category"
12541254

1255-
df.loc[0, "a"] = 1
1255+
df.loc[0, "a"] = np.array([1])
12561256
assert df["a"].dtype == "category"
12571257
tm.assert_frame_equal(df, expected)

0 commit comments

Comments
 (0)