Skip to content

Commit a5d7b34

Browse files
DOC: fix RT03,SA01,ES01 for pandas.json_normalize
1 parent 2a10e04 commit a5d7b34

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
@@ -154,7 +154,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
154154
-i "pandas.infer_freq SA01" \
155155
-i "pandas.io.json.build_table_schema PR07,RT03,SA01" \
156156
-i "pandas.io.stata.StataWriter.write_file SA01" \
157-
-i "pandas.json_normalize RT03,SA01" \
158157
-i "pandas.plotting.andrews_curves RT03,SA01" \
159158
-i "pandas.plotting.scatter_matrix PR07,SA01" \
160159
-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)