Skip to content

Commit fc3aff4

Browse files
DOC: fix RT03,SA01,ES01 for pandas.json_normalize (#60032)
1 parent 824750a commit fc3aff4

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
142142
-i "pandas.infer_freq SA01" \
143143
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
144144
-i "pandas.io.stata.StataWriter.write_file SA01" \
145-
-i "pandas.json_normalize RT03,SA01" \
146145
-i "pandas.plotting.andrews_curves RT03,SA01" \
147146
-i "pandas.plotting.scatter_matrix PR07,SA01" \
148147
-i "pandas.set_eng_float_format RT03,SA01" \

pandas/io/json/_normalize.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ def json_normalize(
279279
"""
280280
Normalize semi-structured JSON data into a flat table.
281281
282+
This method is designed to transform semi-structured JSON data, such as nested
283+
dictionaries or lists, into a flat table. This is particularly useful when
284+
handling JSON-like data structures that contain deeply nested fields.
285+
282286
Parameters
283287
----------
284288
data : dict, list of dicts, or Series of dicts
@@ -310,8 +314,13 @@ def json_normalize(
310314
311315
Returns
312316
-------
313-
frame : DataFrame
314-
Normalize semi-structured JSON data into a flat table.
317+
DataFrame
318+
The normalized data, represented as a pandas DataFrame.
319+
320+
See Also
321+
--------
322+
DataFrame : Two-dimensional, size-mutable, potentially heterogeneous tabular data.
323+
Series : One-dimensional ndarray with axis labels (including time series).
315324
316325
Examples
317326
--------

0 commit comments

Comments
 (0)