Skip to content

Commit 1451c86

Browse files
committed
BUG: Fix TypeError in json_normalize with non-str meta key and record_path
1 parent af463df commit 1451c86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/tests/io/json/test_normalize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ def test_json_normalize_int_key_with_record_path(self):
618618
}
619619
expected_columns = ["b", "c", 12, "a"]
620620
expected = DataFrame(expected_data, columns=expected_columns)
621+
expected["a"] = expected["a"].astype(object)
621622

622623
tm.assert_frame_equal(result, expected)
623624

0 commit comments

Comments
 (0)