I retrieved a csv file from the IMDB database. I imported this file with titles = pd.DataFrame.from_csv('titles.csv', index_col=None)
.
I have tried many sort/order
commands on my ipython notebook, but all of them are throwing errors.
NameError Traceback (most recent call last)
<ipython-input-49-bb0d78f2f73d> in <module>()
----> 1 sort(titles[titles.title== 'Hamlet'])
NameError: name 'sort' is not defined
I tried the following to sort the year series in my dataframe, consisting of year and title.
order(titles$title)
sort(titles[titles.title== 'Hamlet'])
titles['year'].sort()
titles['year].order()
order(titles.year)
titles.sort('year')
titles.order('year')