I am getting an error while executing a python program. The line at which error is occurring is as follows:
This the error I am getting:
TypeError: 'list' object is not callable.
The error says the list is not callable because you are trying to access/use a python list but using parenthesis for it. Parenthesis are used to call a function and because a list is not a function, you get this error. To access/use a python list, you should use square brackets. Try this:
Could you please post here what you are trying to do and what exactly your error is? It will be helpful for me to investigate on that.
Try to print your output within a bracket.
Hey @Suraj, For me its working fine. ...READ MORE
for i in names:
df['ln_returns'] = np.log(df['Close_mid']/df['Close_mid'])
df['Close_mid'](1)) doesn't seem to ...READ MORE
Solve By Calling with Module Name
Another solution to the TypeError: 'module' object ...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 right datatype for destination in argpasrse module ...READ MORE
NameError: name 'xx' is not defined
Python knows ...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.