df['ln_returns'] = np.log(df['Close_mid']/df['Close_mid'](1))
Gives the following error:
'Series' object is not callable
df['ln_returns'] = np.log(df['Close_mid']/df['Close_mid'])
df['Close_mid'](1)) doesn't seem to be doing anything
Hope it helps!!
If you need to know more about Python, It's recommended to join Python course today.
for i in names:
NameError: name 'xx' is not defined
Python knows ...READ MORE
Hey @Suraj, For me its working fine. ...READ MORE
There is a built-in function with the ...READ MORE
You can also use the random library's ...READ MORE
colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
You can simply the built-in function in ...READ MORE
The error says the list is not ...READ MORE
The right datatype for destination in argpasrse module ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.