Skip to content

Commit 82838db

Browse files
committed
chore: fix name in test function
1 parent 5c7efa7 commit 82838db

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/tests/io/json/test_normalize.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -929,12 +929,11 @@ def test_series_non_zero_index(self):
929929
tm.assert_frame_equal(result, expected)
930930

931931
def test_json_normalize_non_str_keys(self):
932+
# see gh-63019
932933
# Test that json_normalize handles non-string meta
933934
# keys correctly when record_path is used
934935

935-
data_list = [{"a": 1, 12: "meta_value", "nested": [{"b": 2}]}]
936-
937-
result = json_normalize(data_list, record_path=["nested"], meta=[12])
936+
data = [{"a": 1, 12: "meta_value", "nested": [{"b": 2}]}]
937+
result = json_normalize(data, record_path=["nested"], meta=[12])
938938
expected = DataFrame({"b": [2], "12": ["meta_value"]})
939-
940939
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)