Loading tutorials
pd.json_normalize: turning JSON text, a file, or an API response into the Python objects that function accepts. Mo6 min readpd.json_normalize call and learn what it accepts, what it returns, and how to read the resul5 min readpd.json_normalize on a list of records. You should also know what a DataFrame column is. Here you will learn the rule that turns a path of nested keys into one column name, how sep changes that rule, an5 min readpd.json_normalize on a list of dictionaries and that you know how nested keys become dotted column names. It also assumes you know how sep changes the separator. If not, review the earlier chapters on basic json_normalize and column naming first.4 min readpd.json_normalize handles records whose keys differ, and which cases it does not handle quietly.5 min readpd.json_normalize on a list of dictionaries and read the dotted column names it produces. You should also know the difference between a missing key and a key whose value is None.5 min readpd.json_normalize on a list of dictionaries. You should also know that json_normalize turns nested objects into dotted column names and leaves lists as values inside a cell. Here you will expand those list5 min readpd.json_normalize on a list of dictionaries and that you know what record_path does. If not, review the previous chapter first. You should also be comfortable with nested dictionaries and lists in Python.4 min readpd.json_normalize does when a field named in meta is absent from some records, and how the errors parameter changes that. It assumes you can call json_normalize with record_path and meta, and that you know a missing key in a plain record becomes NaN. The earlie5 min readjson_normalize gives you a flat table, but it rarely gives you a finished one. Column names contain dots, numbers may still be strings, and some cells hold lists or None. This chapter covers the steps that usually follow flattening: renaming columns, converting dtypes, handling missing values, a5 min readjson_normalize with record_path and meta, how NaN appears for missing keys, and how to rename columns and convert dtypes afterwards. You should also be comfortable with Python dicts, lists, and basic Da5 min read