質問編集履歴
1
data frame名の修正。自己解決法の記入
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
DataFrameの型変換について教えてください。
|
2
2
|
|
3
3
|
```python
|
4
|
-
|
4
|
+
df.loc[0,"# of TAB"]
|
5
5
|
output:'100'
|
6
6
|
```
|
7
7
|
|
8
8
|
```python
|
9
|
-
|
9
|
+
df["# of TAB"].dtype
|
10
10
|
ouput:dtype('O')
|
11
11
|
|
12
|
-
|
12
|
+
df["# of TAB"].astype(float)
|
13
13
|
ouput: could not convert string to float: '500TSE'
|
14
14
|
```
|
15
15
|
|