回答編集履歴

1

Codeを更新

2019/11/01 00:06

投稿

J1N
J1N

スコア56

test CHANGED
@@ -10,11 +10,11 @@
10
10
 
11
11
  ```ここに言語を入力
12
12
 
13
- # row=df.iloc[0:1,1:5]
13
+ tmp = df[df['temperature'] == max]
14
14
 
15
- sday="%02d"%int(df.iloc[0][0])+"/"+"%02d"%int(df.iloc[0][1])+"_"+\
15
+ sday="%02d"%int(tmp.iloc[0][0])+"/"+"%02d"%int(tmp.iloc[0][1])+"_"+\
16
16
 
17
- "%02d"%int(df.iloc[0][3])+":"+"%02d"%int(df.iloc[0][4])
17
+ "%02d"%int(tmp.iloc[0][3])+":"+"%02d"%int(tmp.iloc[0][4])
18
18
 
19
19
  print (sday)
20
20