質問編集履歴
2
ドキュメントに書いてたことを明記
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,3 +57,21 @@
|
|
57
57
|
[pandas.DataFrame.groupby — pandas 0.23.0 documentation](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.groupby.html)
|
58
58
|
|
59
59
|
を眺めてみましたが、xについて理解できていません。
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
## 追記
|
64
|
+
|
65
|
+
よく見たら参考URLのドキュメントに書いてました、ごめんなさい・・・。
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
Parameters
|
70
|
+
|
71
|
+
bymapping, function, label, or list of labels
|
72
|
+
|
73
|
+
Used to determine the groups for the groupby. If by is a function, it’s called on each value of the object’s index. If a dict or Series is passed, the Series or dict VALUES will be used to determine the groups (the Series’ values are first aligned; see .align() method). If an ndarray is passed, the values are used as-is determine the groups. A label or list of labels may be passed to group by the columns in self. Notice that a tuple is interpreted as a (single) key.
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
一部翻訳:byが関数の場合、オブジェクトのインデックスの各値で呼び出されます
|
1
情報追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,6 +48,10 @@
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
+
デバッグ実行してもxの中身は見れなかったです。
|
52
|
+
|
53
|
+
|
54
|
+
|
51
55
|
参考:
|
52
56
|
|
53
57
|
[pandas.DataFrame.groupby — pandas 0.23.0 documentation](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.groupby.html)
|