Variya
2026-03-06 1c58a76b4e34a477701340fed3f7ec556f62c90a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pandas as pd
import pickle
 
df = pickle.load(open("data/akshare_real_data_fixed.pkl", "rb"))
stocks = ["sh601899", "sh600938", "sh600410", "sh601857", "sh600989"]
 
for stock in stocks:
    stock_data = df[df["stock_code"] == stock]
    if len(stock_data) > 0:
        min_close = stock_data["close"].min()
        max_close = stock_data["close"].max()
        print(f"{stock}: min_close={min_close}, max_close={max_close}, count={len(stock_data)}")
    else:
        print(f"{stock}: No data found")