akshare 1.14.58__py3-none-any.whl → 1.14.59__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.

Potentially problematic release.


This version of akshare might be problematic. Click here for more details.

akshare/__init__.py CHANGED
@@ -2869,9 +2869,10 @@ amac_manager_cancelled_info # 中国证券投资基金业协会-信息公示-诚
2869
2869
  1.14.56 add: add spot_corn_price_soozhu interface
2870
2870
  1.14.57 add: add spot_soybean_price_soozhu interface
2871
2871
  1.14.58 add: add spot_mixed_feed_soozhu interface
2872
+ 1.14.59 fix: fix macro_cnbs interface
2872
2873
  """
2873
2874
 
2874
- __version__ = "1.14.58"
2875
+ __version__ = "1.14.59"
2875
2876
  __author__ = "AKFamily"
2876
2877
 
2877
2878
  import sys
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding:utf-8 -*-
3
3
  """
4
- Date: 2023/7/19 18:20
4
+ Date: 2023/8/14 11:10
5
5
  Desc: 国家金融与发展实验室-中国宏观杠杆率数据
6
6
  http://114.115.232.154:8080/
7
7
  """
8
+
8
9
  import pandas as pd
9
10
 
10
11
 
@@ -50,16 +51,20 @@ def macro_cnbs() -> pd.DataFrame:
50
51
  "金融部门负债方",
51
52
  ]
52
53
  temp_df = temp_df.reindex(columns=column_order)
53
-
54
54
  temp_df["居民部门"] = pd.to_numeric(temp_df["居民部门"], errors="coerce")
55
- temp_df["非金融企业部门"] = pd.to_numeric(temp_df["非金融企业部门"], errors="coerce")
55
+ temp_df["非金融企业部门"] = pd.to_numeric(
56
+ temp_df["非金融企业部门"], errors="coerce"
57
+ )
56
58
  temp_df["政府部门"] = pd.to_numeric(temp_df["政府部门"], errors="coerce")
57
59
  temp_df["中央政府"] = pd.to_numeric(temp_df["中央政府"], errors="coerce")
58
60
  temp_df["地方政府"] = pd.to_numeric(temp_df["地方政府"], errors="coerce")
59
61
  temp_df["实体经济部门"] = pd.to_numeric(temp_df["实体经济部门"], errors="coerce")
60
- temp_df["金融部门资产方"] = pd.to_numeric(temp_df["金融部门资产方"], errors="coerce")
61
- temp_df["金融部门负债方"] = pd.to_numeric(temp_df["金融部门负债方"], errors="coerce")
62
-
62
+ temp_df["金融部门资产方"] = pd.to_numeric(
63
+ temp_df["金融部门资产方"], errors="coerce"
64
+ )
65
+ temp_df["金融部门负债方"] = pd.to_numeric(
66
+ temp_df["金融部门负债方"], errors="coerce"
67
+ )
63
68
  return temp_df
64
69
 
65
70
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: akshare
3
- Version: 1.14.58
3
+ Version: 1.14.59
4
4
  Summary: AKShare is an elegant and simple financial data interface library for Python, built for human beings!
5
5
  Home-page: https://github.com/akfamily/akshare
6
6
  Author: AKFamily
@@ -1,4 +1,4 @@
1
- akshare/__init__.py,sha256=ITSnaikUQRAfrWGm9bImN1GEdqw2eNJtWCQYgnWVRXw,180742
1
+ akshare/__init__.py,sha256=-vt4pHcLM4WikNyFRByB1ZYt0UcrfREBrzB3TiLNLeA,180780
2
2
  akshare/datasets.py,sha256=oIu1zC7o_LMHY22lQmdM7vCnryHibKrJLBqJwQiitlI,1167
3
3
  akshare/air/__init__.py,sha256=RMTf1bT5EOE3ttWpn3hGu1LtUmsVxDoa0W7W0gXHOy8,81
4
4
  akshare/air/air_hebei.py,sha256=xIXNGLK7IGYqrkteM9fxnHAwWqk6PCQs6D9-ggZ7byY,4442
@@ -64,7 +64,7 @@ akshare/economic/macro_other.py,sha256=nf4XIw1x5wnn9WaiuxxbOYf9mgRsJNXJ7gmiprsbf
64
64
  akshare/economic/macro_swiss.py,sha256=23b2Swd786XC3BI2TZdxmzGDaZKb-O6QkbAtAnHa6WE,4403
65
65
  akshare/economic/macro_uk.py,sha256=wxfzehWbGysnnyjeZz4sZPcezJLDQDRcGJGjOYhUUmY,8469
66
66
  akshare/economic/macro_usa.py,sha256=4t4rk7h83mnkyroM4VwRo0W7NmFBFgOsZ50ml1fck1o,48492
67
- akshare/economic/marco_cnbs.py,sha256=ugSs9S7oISv_X905YK5zrn6hCMWwpETpyuJ-Ss6uZ5k,2449
67
+ akshare/economic/marco_cnbs.py,sha256=gWLy489eEQrxqqpoztls5FnM6yJKSw-H7o40sK6ssMU,2490
68
68
  akshare/energy/__init__.py,sha256=hnsOSZlRX38q13LxfitiByNj_hUcVM-VtWDDnDoHe3s,82
69
69
  akshare/energy/energy_carbon.py,sha256=ORFzl5YmcZry1TUoQHoSmTTDLpVq_Aof7SxEABGkOoU,11341
70
70
  akshare/energy/energy_oil_em.py,sha256=ebXH9icUpgX1qssHslw3Hx5xYgifKz5VNt9UKbXfAAk,4087
@@ -380,8 +380,8 @@ akshare/utils/token_process.py,sha256=K4rGXjh_tgugbRcyOK2h2x0jP3PT65IIK7nxhUKhOe
380
380
  akshare/utils/tqdm.py,sha256=MuPNwcswkOGjwWQOMWXi9ZvQ_RmW4obCWRj2i7HM7FE,847
381
381
  tests/__init__.py,sha256=gNzhlO0UPjFq6Ieb38kaVIODXv4cTDByrdohAZnDYt4,82
382
382
  tests/test_func.py,sha256=tfvy_YnYmDra2dkKZ5JvprU1gNW5X9T634PszdSdH1A,944
383
- akshare-1.14.58.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
- akshare-1.14.58.dist-info/METADATA,sha256=em4scNdU-rHJiWUvVU5a6sCMwwVUbpBXjH6hu2XCMqI,13961
385
- akshare-1.14.58.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
386
- akshare-1.14.58.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
- akshare-1.14.58.dist-info/RECORD,,
383
+ akshare-1.14.59.dist-info/LICENSE,sha256=mmSZCPgfHiVw34LXuFArd-SUgQtBJ_QsIlh-kWlDHfs,1073
384
+ akshare-1.14.59.dist-info/METADATA,sha256=iHe8eKqNoBraIvHQouVf52pobYirOlzI48byGPb9FQU,13961
385
+ akshare-1.14.59.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
386
+ akshare-1.14.59.dist-info/top_level.txt,sha256=jsf9ZzZPmHaISTVumQPsAw7vv7Yv-PdEVW70SMEelQQ,14
387
+ akshare-1.14.59.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (72.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5