cryptocurrency-price-prediction
cryptocurrency-price-prediction copied to clipboard
TypeError: unsupported operand type(s) for /: 'str' and 'str'
train, test, X_train, X_test, y_train, y_test = prepare_data(
hist, target_col, window_len=window_len, zero_base=zero_base, test_size=test_size)
unfortunately, I confront this error when running the above code.
TypeError: unsupported operand type(s) for /: 'str' and 'str'
Is there any way to get rid of it?
I would like to help with this issue if no one's assigned.
@NovusEdge go for it
@abhinavsagar Could you please mention a more verbose error message Also, please mention the lines that show the error in the code.
train, test, X_train, X_test, y_train, y_test = prepare_data( hist, target_col, window_len=window_len, zero_base=zero_base, test_size=test_size)不幸的是,我在运行上面的代码时遇到了这个错误。
TypeError:/的不支持的操作数类型:“ str”和“ str”
有什么办法摆脱它吗? 我遇到了同样的问题
same issue ! https://prnt.sc/117axsb
Hey guys, I just checked @abhinavsagar article and I tried to run his code. Most probably the dataset changed and it now has 2 extra string columns. Just drop 'conversionType' and 'conversionSymbol' and it works.
Hey guys, I just checked @abhinavsagar article and I tried to run his code. Most probably the dataset changed and it now has 2 extra string columns. Just drop 'conversionType' and 'conversionSymbol' and it works.
Hi! Thanks that was the problem :D I dropped these two this way and it is working now :D

Hey guys, I just checked @abhinavsagar article and I tried to run his code. Most probably the dataset changed and it now has 2 extra string columns. Just drop 'conversionType' and 'conversionSymbol' and it works.
Hi! Thanks that was the problem :D I dropped these two this way and it is working now :D
You can try to use hist.drop('conversionType',axis='columns', inplace=True), instead of using the loop you implemented. I think you can even drop both with hist.drop(['conversionType','conversionType' ],axis='columns', inplace=True) but I am not sure.
@teoad95 Thanks this is working fine