質問編集履歴
1
情報追加のため
test
CHANGED
File without changes
|
test
CHANGED
@@ -396,6 +396,80 @@
|
|
396
396
|
|
397
397
|
|
398
398
|
|
399
|
+
## 追記
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
```python
|
404
|
+
|
405
|
+
"""ファイル名: main.py"""
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
# CSVデータの読み込み
|
410
|
+
|
411
|
+
df = pd.read_csv("<CSVファイル>", header=0)
|
412
|
+
|
413
|
+
print(df.head())
|
414
|
+
|
415
|
+
print(df.info())
|
416
|
+
|
417
|
+
```
|
418
|
+
|
419
|
+
とすると
|
420
|
+
|
421
|
+
```
|
422
|
+
|
423
|
+
d p d2 d1 ac d3 a3 a1 a1a3 r
|
424
|
+
|
425
|
+
0 20 4 18.0 16 0.25 15.5 189 201 1.07 0.25
|
426
|
+
|
427
|
+
1 20 2 19.0 18 0.25 17.5 241 254 1.06 0.25
|
428
|
+
|
429
|
+
2 22 8 18.0 14 0.50 13.0 133 154 1.16 0.50
|
430
|
+
|
431
|
+
3 22 5 19.5 17 0.25 16.5 214 227 1.06 0.25
|
432
|
+
|
433
|
+
4 22 3 20.5 19 0.25 18.5 269 284 1.05 0.25
|
434
|
+
|
435
|
+
<class 'pandas.core.frame.DataFrame'>
|
436
|
+
|
437
|
+
RangeIndex: 161 entries, 0 to 160
|
438
|
+
|
439
|
+
Data columns (total 10 columns):
|
440
|
+
|
441
|
+
d 161 non-null int64
|
442
|
+
|
443
|
+
p 161 non-null int64
|
444
|
+
|
445
|
+
d2 161 non-null float64
|
446
|
+
|
447
|
+
d1 161 non-null int64
|
448
|
+
|
449
|
+
ac 161 non-null float64
|
450
|
+
|
451
|
+
d3 161 non-null float64
|
452
|
+
|
453
|
+
a3 161 non-null int64
|
454
|
+
|
455
|
+
a1 161 non-null int64
|
456
|
+
|
457
|
+
a1a3 161 non-null float64
|
458
|
+
|
459
|
+
r 161 non-null float64
|
460
|
+
|
461
|
+
dtypes: float64(5), int64(5)
|
462
|
+
|
463
|
+
memory usage: 12.7 KB
|
464
|
+
|
465
|
+
None
|
466
|
+
|
467
|
+
```
|
468
|
+
|
469
|
+
でした.
|
470
|
+
|
471
|
+
|
472
|
+
|
399
473
|
## 最後に
|
400
474
|
|
401
475
|
|