回答編集履歴
2
Update
answer
CHANGED
@@ -10,7 +10,6 @@
|
|
10
10
|
1 23.2
|
11
11
|
Name: temp, dtype: float64
|
12
12
|
|
13
|
-
>>> df.loc[e, 'temp'].astype(int)
|
13
|
+
>>> df.loc[e, 'temp'].astype(int).values[0]
|
14
|
-
|
14
|
+
23
|
15
|
-
Name: temp, dtype: int64
|
16
15
|
```
|
1
Update
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
`e` をフィルタ式のみにしてはどうでしょうか。
|
2
2
|
```
|
3
3
|
>>> e = (df['hour'] == 12) & (df['minute'] == 0)
|
4
4
|
|