Skip to content

Commit df293ae

Browse files
committed
fix: use DataFrame.from_records instead of DataFrame constructor for mapping dict test. Applied black formatting and pre-commit fixes
1 parent 1812bd9 commit df293ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4747,7 +4747,7 @@ def test_from_records() -> None:
47474747
# testing with mapping of sequences
47484748
data_mapping_dict = {"id": [1, 2], "name": ["a", "b"]}
47494749
check(
4750-
assert_type(pd.DataFrame(data_mapping_dict), pd.DataFrame),
4750+
assert_type(pd.DataFrame.from_records(data_mapping_dict), pd.DataFrame),
47514751
pd.DataFrame,
47524752
)
47534753

0 commit comments

Comments
 (0)