Loading tutorials
pd.json_normalize can accept.2 min readjson.loads. pd.json_normalize2 min readpd.json_normalize on a list of dicts, and can inspect df.columns. It covers how the function names the columns it creates and how to change that naming.2 min readpd.json_normalize on a list of dictionaries and know that nested keys become dotted column names. It builds on the previous chapter, which covered the sep argument.2 min readpd.json_normalize on a list of dicts and know that nested keys become dotted column names. Real JSON rarely has the same keys in every record, so you need to know what the DataFrame looks like when it doesn't.2 min readpd.json_normalize on a list of dicts and read the dotted column names it produces. You should also know that JSON objects become Python dicts and JSON arrays become Python lists.2 min readpd.json_normalize on a list of dicts and that you know how dotted column names are built. Those topics came earlier. Here the goal is different. Some of your data is a list of records, such as the items in an order, and you want one row per list element.2 min readrecord_path expands a list of records into rows. Here you will learn how meta copies fields from the parent record onto each of those rows.2 min readpd.json_normalize with record_path and meta, and that you know how nested keys become dotted column names. Here you will see what goes wrong when a record field and a parent field share a name, and how two prefix arguments fix it.2 min readpd.json_normalize with record_path and meta. You should also know that a key missing from a record normally becomes NaN when you flatten without record_path. Here you will see that meta behaves differently, and how errors changes that.2 min readpd.json_normalize on a list of dicts and know that nested keys become dotted column names. After flattening, the table is usually not ready to use. The column names contain dots, and every value may still be a string, because JSON text often stores numbers as quot2 min readpd.json_normalize with record_path and meta, and that you know what explode does in general. It helps you spot cases where json_normalize is the wrong choice, and it shows what to use instead.2 min read