Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPR数据错误 #1749

Open
ZhongHaoAustin opened this issue Aug 29, 2024 · 0 comments
Open

LPR数据错误 #1749

ZhongHaoAustin opened this issue Aug 29, 2024 · 0 comments

Comments

@ZhongHaoAustin
Copy link

复现代码

# %%
# 拉取数据
import tushare as ts

# 初始化pro接口
pro = ts.pro_api()
df = pro.shibor_lpr(
    **{"date": "", "start_date": 20200702, "end_date": 20240928, "limit": "", "offset": ""},
    fields=["date", "1y", "5y"]
)
print(df)

date列第 8 行格式与其他不一致

          date    1y    5y
0     20240820  3.35  3.85
1     20240722  3.35  3.85
2     20240620  3.45  3.95
3     20240520  3.45  3.95
4     20240422  3.45  3.95
5     20240320  3.45  3.95
6     20240220  3.45  3.95
7     20240122  3.45  4.20
8   2024-08-20  3.35  3.85
9     20231220  3.45  4.20
10    20231120  3.45  4.20
11    20231020  3.45  4.20
12    20230920  3.45  4.20
13    20230821  3.45  4.20
14    20230720  3.55  4.20
15    20230620  3.55  4.20
16    20230522  3.65  4.30
17    20230420  3.65  4.30
18    20230320  3.65  4.30
19    20230220  3.65  4.30
20    20230120  3.65  4.30
21    20221220  3.65  4.30
22    20221121  3.65  4.30
23    20221020  3.65  4.30
...
47    20201020  3.85  4.65
48    20200921  3.85  4.65
49    20200820  3.85  4.65
50    20200720  3.85  4.65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant