回答編集履歴
1
Update
test
CHANGED
@@ -28,11 +28,13 @@
|
|
28
28
|
|
29
29
|
json_obj = json.loads(json_text)['results']
|
30
30
|
|
31
|
+
cols = ['to', 'from']
|
32
|
+
|
31
33
|
df = pd.DataFrame(
|
32
34
|
|
33
|
-
[[j[
|
35
|
+
[[j[cols[0]][0]['id'], j[cols[1]]['id']] for j in json_obj],
|
34
36
|
|
35
|
-
columns = l
|
37
|
+
columns = cols)
|
36
38
|
|
37
39
|
|
38
40
|
|