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

is _qtd bug ? #348

Open
wony-zheng opened this issue Apr 24, 2024 · 1 comment
Open

is _qtd bug ? #348

wony-zheng opened this issue Apr 24, 2024 · 1 comment

Comments

@wony-zheng
Copy link

def _qtd(df):
date = _dt.datetime.now()
for q in [1, 4, 7, 10]:
if date.month <= q:
return df[df.index >= _dt.datetime(date.year, q, 1).strftime("%Y-%m-01")]
return df[df.index >= date.strftime("%Y-%m-01")]

when today.month == 2 ,it loc df.index >= 'xxxx-04-01'

@grzesir
Copy link

grzesir commented Jul 30, 2024

Check out https://github.com/Lumiwealth/quantstats_lumi, which is being updated regularly. We are a fork of this library that is being maintained by Lumiwealth

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

2 participants