Skip to content

Commit

Permalink
fix: fix energy_carbon_hb
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandking committed Jun 9, 2024
1 parent 5687bd5 commit 44bb016
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions akshare/energy/energy_carbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ def energy_carbon_hb() -> pd.DataFrame:
)
start_pos = data_text.find("cjj = '[") + 7 # 找到 JSON 数组开始的位置
end_pos = data_text.rfind("cjj =") - 31 # 找到 JSON 数组结束的位置
from akshare.utils import demjson

data_json = demjson.decode(data_text[start_pos:end_pos])
temp_df = pd.DataFrame.from_dict(data_json)
temp_df.rename(
Expand Down

0 comments on commit 44bb016

Please sign in to comment.