vault backup: 2026-11-09 11:03:13
This commit is contained in:
1 parent
d58a4b3fa9
commit
dd0857bdde
6 files changed
+371
-15
No files matched your search
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""分析百家号重新导出的单篇数据"""
|
||||
import sys
|
||||
import pandas as pd
|
||||
|
||||
sys.stdout.reconfigure(encoding="utf-8")
|
||||
|
||||
df = pd.read_excel(r"E:\Download\单篇数据.xlsx", sheet_name="data")
|
||||
df.columns = [str(c).strip() for c in df.columns]
|
||||
print("列:", list(df.columns))
|
||||
print("行数:", len(df))
|
||||
print("日期范围:", df["发布时间"].min(), "~", df["发布时间"].max())
|
||||
print()
|
||||
|
||||
print("=== 全部数据 ===")
|
||||
print(df.to_string(index=False))
|
||||
Reference in new issue
Block a user