-
-
Notifications
You must be signed in to change notification settings - Fork 847
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
Comments
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
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'
The text was updated successfully, but these errors were encountered: