質問編集履歴
1
コードを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,3 +5,27 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
どのようにすれば、-36180 の様に数値のままデータフレームにできますでしょうか。ご教示いただけますと幸いです。
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
なお、読み込み時のコードは以下です(なぜかエンコーディングエラーが多発するファイルのため、ネットを参照して以下の様にして読み込みました。):
|
12
|
+
|
13
|
+
```Python3
|
14
|
+
|
15
|
+
import codecs
|
16
|
+
|
17
|
+
import pandas as pd
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
pd.set_option('display.max_columns', 1000)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
with codecs.open('Agent3.csv', "r", "Shift-JIS", "ignore") as file:
|
26
|
+
|
27
|
+
df = pd.read_table(file, delimiter=",")
|
28
|
+
|
29
|
+
display(df.head())
|
30
|
+
|
31
|
+
```
|