Hi,
I am new to python. I am trying to do some operation with my data set
I am trying to do this operation
i am getting this error
If I tried like this
The error is
I am new to python. I am trying to do some operation with my data set
I am trying to do this operation
1 |
df[ 'dif_and_sq' ] = (df[ 'imdbRating' ]).sub((df[ 'imdbVotes' ])) |
Error:TypeError: unsupported operand type(s) for -: 'str' and 'str'
Even i tried to convert the variable to numeric but its not converting a it remains in seriousIf I tried like this
1 |
df[ 'dif_and_sq' ] = int (df[ 'imdbRating' ]).sub( int (df[ 'imdbVotes' ])) |
Error:TypeError: cannot convert the series to <class 'int'>
how to reslove this error