Skip to content

Group by direction #361

Answered by polakowo
andreas-vester asked this question in Q&A
Jan 27, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@andreas-vester yes, you need to tile the price DataFrame three times and append a new column level "direction" (you can use price.vbt.tile for this). You can then pass direction as direction=price.columns.get_level_values('direction').values.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andreas-vester
Comment options

Answer selected by andreas-vester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants