akshare-one 0.3.12__py3-none-any.whl → 0.3.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,10 +61,20 @@ class EastMoneyDirectFinancialReport(FinancialDataProvider):
61
61
  if balance_sheet.empty and income_statement.empty and cash_flow.empty:
62
62
  return pd.DataFrame()
63
63
 
64
- merged = pd.merge(
65
- balance_sheet, income_statement, on="report_date", how="outer"
66
- )
67
- merged = pd.merge(merged, cash_flow, on="report_date", how="outer")
64
+ # Start with the non-empty DataFrame
65
+ if not balance_sheet.empty:
66
+ merged = balance_sheet
67
+ elif not income_statement.empty:
68
+ merged = income_statement
69
+ else:
70
+ merged = cash_flow
71
+
72
+ # Merge with the remaining non-empty DataFrames
73
+ if not income_statement.empty and merged is not income_statement:
74
+ merged = pd.merge(merged, income_statement, on="report_date", how="outer")
75
+
76
+ if not cash_flow.empty and merged is not cash_flow:
77
+ merged = pd.merge(merged, cash_flow, on="report_date", how="outer")
68
78
 
69
79
  # Convert report_date to datetime and format as YYYY-MM-DD
70
80
  merged["report_date"] = pd.to_datetime(merged["report_date"]).dt.strftime(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: akshare-one
3
- Version: 0.3.12
3
+ Version: 0.3.13
4
4
  Summary: Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs
5
5
  Keywords: akshare,financial-data,stock-data,quant
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ akshare_one/eastmoney/utils.py,sha256=j2TwwMepkihWUShuRGbCl9ep-soSYzAWnukkRJA3mH
4
4
  akshare_one/indicators.py,sha256=Mug0Hv2rOGvm1I9fwF8xtBksyWJu8djk-P2d2SF4NbU,12139
5
5
  akshare_one/modules/cache.py,sha256=8otk8cSOV4dxztmWmvCKGOoEPmPCYiw6cqt0T3iN_7k,1678
6
6
  akshare_one/modules/financial/base.py,sha256=Lmq98sEs-4nz2Bqu8Rlhtt4Z0btqi7r7JUEu-GOTFoo,662
7
- akshare_one/modules/financial/eastmoney_direct.py,sha256=3o-MIRifD_yKjwZhC1THgfzCTKvoXieQMs0YsVYDKR8,6642
7
+ akshare_one/modules/financial/eastmoney_direct.py,sha256=xznY8IMibU6v2tYnFsgPV0rA3zNtRQi_zt3YzGEykL8,7053
8
8
  akshare_one/modules/financial/factory.py,sha256=uqDGwWjY78OBCgcKgevqB_mEWKCyTGAS0RMHZ2J6OnU,1462
9
9
  akshare_one/modules/financial/sina.py,sha256=Nm9J-Kkc8KleVVWxowhbuunQfG0SUaBY6Mdow9X8-yQ,13541
10
10
  akshare_one/modules/historical/base.py,sha256=IrbKFco61xAgSBZU2xiU_AKxBohyM1wRo9CcRdp_Elg,1271
@@ -33,6 +33,6 @@ akshare_one/modules/realtime/factory.py,sha256=dezd9vxeKWizlikcl04iR2KqWOh9Jc8jH
33
33
  akshare_one/modules/realtime/xueqiu.py,sha256=6NxCfVNY0TMXKV06z0DQoml_58pniRtP8HSMtas9aYs,2148
34
34
  akshare_one/modules/utils.py,sha256=H4nrGf8m4_ezTiW5-OcNPxpV-neTYfffEfaOLDFLY9Y,323
35
35
  akshare_one/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
- akshare_one-0.3.12.dist-info/WHEEL,sha256=Jb20R3Ili4n9P1fcwuLup21eQ5r9WXhs4_qy7VTrgPI,79
37
- akshare_one-0.3.12.dist-info/METADATA,sha256=G6SRtBk5AELtCsxJrYJ5h2ex61EqBOgreJxdsLD30mM,2156
38
- akshare_one-0.3.12.dist-info/RECORD,,
36
+ akshare_one-0.3.13.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
37
+ akshare_one-0.3.13.dist-info/METADATA,sha256=BBJbGSvZXR0ilRUVz4OK_zJHn9YwcdNll-cVNOFVyC4,2156
38
+ akshare_one-0.3.13.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.15
2
+ Generator: uv 0.8.24
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any