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 5c7efa7 commit 82838dbCopy full SHA for 82838db
pandas/tests/io/json/test_normalize.py
@@ -929,12 +929,11 @@ def test_series_non_zero_index(self):
929
tm.assert_frame_equal(result, expected)
930
931
def test_json_normalize_non_str_keys(self):
932
+ # see gh-63019
933
# Test that json_normalize handles non-string meta
934
# keys correctly when record_path is used
935
- data_list = [{"a": 1, 12: "meta_value", "nested": [{"b": 2}]}]
936
-
937
- result = json_normalize(data_list, record_path=["nested"], meta=[12])
+ data = [{"a": 1, 12: "meta_value", "nested": [{"b": 2}]}]
+ result = json_normalize(data, record_path=["nested"], meta=[12])
938
expected = DataFrame({"b": [2], "12": ["meta_value"]})
939
940
0 commit comments