Skip to content

Commit e19e415

Browse files
committed
Address review: use DataFrame constructor directly
1 parent d82de16 commit e19e415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/indexing/test_where.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ def test_where_inplace_no_other():
10681068
def test_where_other_nullable_dtype():
10691069
# GH#49052 DataFrame.where should return nullable dtype when
10701070
# other is a Series with nullable dtype, matching Series.where behavior
1071-
df = Series([1, 2, 3], dtype="int64").to_frame()
1071+
df = DataFrame([1, 2, 3], dtype="int64")
10721072
other = Series([pd.NA, pd.NA, pd.NA], dtype="Int64")
10731073
result = df.where(df > 1, other, axis=0)
10741074
expected = DataFrame({0: Series([pd.NA, 2, 3], dtype="Int64")})

0 commit comments

Comments
 (0)