repl.it
@yulin1127/

python-basic-hw18-3

Python

No description

fork
loading
Files
  • main.py
  • stock_data.csv
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
import pandas as pd

# 可使用 encoding 避免編碼問題
df = pd.read_csv('stock_data.csv', encoding='utf-8')

print(df.info())
print(df.describe())

print(df.iloc[3:6, [0,1,7]])