We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e3206 commit 0cf27a7Copy full SHA for 0cf27a7
pandas/tests/dtypes/test_dtypes.py
@@ -1250,8 +1250,5 @@ def test_categorical_nan_no_dtype_conversion():
1250
1251
df = pd.DataFrame({"a": Categorical([np.nan], [1]), "b": [1]})
1252
expected = pd.DataFrame({"a": Categorical([1], [1]), "b": [1]})
1253
- assert df["a"].dtype == "category"
1254
-
1255
df.loc[0, "a"] = np.array([1])
1256
1257
tm.assert_frame_equal(df, expected)
0 commit comments