I was working with a CSV file on a project and after reading the CSV into the Program with the pandas.read_csv function the returned data type seemed not be a Dataframe for some reason
code was as follows:
sample = pd.read_csv(‘sample.csv’)
When i tried to run some functions on the supposed ‘returned dataframe object -sample’ I get an error which states- TypeError: ‘str’ object is not callable
Fix: It appeared to be an update issue so , I ran an update on my Anaconda package using conda update anaconda and that fixed the issue.
Hope it helps someone!
This is my first time visit at here and i am genuinely
happy to read all at one place.