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

can I get lagged value of a financial var #458

Closed
specialuse opened this issue Jun 2, 2021 · 6 comments
Closed

can I get lagged value of a financial var #458

specialuse opened this issue Jun 2, 2021 · 6 comments
Labels
question Further information is requested stale

Comments

@specialuse
Copy link

for example i have column "roe" in my dataset, how can i get lag(roe)? i mean not yesterday's roe but the last quarter's roe
thanks

@specialuse specialuse added the question Further information is requested label Jun 2, 2021
@ZFgan
Copy link

ZFgan commented Jun 2, 2021

It's a little difficult. You have to define the delay function yourself.

@specialuse
Copy link
Author

Thanks
But the basic data is {X i,t.a},without “report_period” it is difficult to define such kind of functions

@ZFgan
Copy link

ZFgan commented Jun 3, 2021

It can be processed in two steps, reading all the data first, and then cutting it yourself, although the processing speed will be slower. It will be troublesome if you use pit data, but if it is factor data, only one additional csv file is needed to store the financial report points in time, such as 0331, 0630, 0931, 1231 or 0501, 0901, 1101.

@you-n-g
Copy link
Collaborator

you-n-g commented Jun 5, 2021

@specialuse
#343 is designed for exactly your requirements.
Please pay attention to it.

@specialuse
Copy link
Author

expecting
thanks

@github-actions
Copy link

github-actions bot commented Sep 4, 2021

This issue is stale because it has been open for three months with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label Sep 4, 2021
@github-actions github-actions bot closed this as completed Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

3 participants