teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

data frame名の修正。自己解決法の記入

2019/11/24 15:22

投稿

D7U
D7U

スコア22

title CHANGED
File without changes
body CHANGED
@@ -1,15 +1,15 @@
1
1
  DataFrameの型変換について教えてください。
2
2
 
3
3
  ```python
4
- df_LIP_honsu_201711_End.loc[0,"# of TAB"]
4
+ df.loc[0,"# of TAB"]
5
5
  output:'100'
6
6
  ```
7
7
 
8
8
  ```python
9
- df_LIP_honsu_201711_End["# of TAB"].dtype
9
+ df["# of TAB"].dtype
10
10
  ouput:dtype('O')
11
11
 
12
- df_LIP_honsu_201711_End["# of TAB"].astype(float)
12
+ df["# of TAB"].astype(float)
13
13
  ouput: could not convert string to float: '500TSE'
14
14
  ```
15
15