回答編集履歴
1
修正
answer
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
json_str = '{"A":{"B":{"C":7}}}'
|
8
8
|
json_dict = json.loads(json_str)
|
9
|
-
df = json_normalize(json_dict )
|
9
|
+
df = pd.json_normalize(json_dict )
|
10
10
|
|
11
11
|
df.columns = df.columns.str.replace(".+.(.+)", r"\1", regex=True)
|
12
12
|
print(df)
|