13 lines
353 B
Python
13 lines
353 B
Python
import akshare as ak
|
|
import pandas as pd
|
|
|
|
df = ak.stock_zh_index_daily(symbol="sh000300")
|
|
print("📊 DataFrame info:")
|
|
print(df.info())
|
|
print("\n📋 First 5 rows:")
|
|
print(df.head())
|
|
print("\n🔍 Index type:", type(df.index))
|
|
print("🔍 First index value:", df.index[0], type(df.index[0]))
|
|
print("\n🔍 Last 5 index values:")
|
|
print(df.tail().index)
|