Combine two pandas dataframe with different column lengths #483
Unanswered
NikitaVagin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi everyone! I try to combine two pandas dataframe with different column lengths via vbt.combine func:
df1.vbt.combine(df2, combine_func=lambda x, y: x & y)and got and error: Index at position 1 could not be aligned. Dataframes have the following shapes:
dt1 - (2976, 100). With two MultiIndex - rsi_window and rsi_crossed_above
dt2 - (2976, 10) With one index = ema_windows
I fixed it by increasing the dt2 columns to 100, but it leads to unnecessary calculation further. Is there any way I can improve it?
Beta Was this translation helpful? Give feedback.
All reactions