auto-sync: 2026-04-02 08:55:06
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user