1. RangeIndex: 23 entries, 0 to 22 Data columns (total 5 columns): 2. ‘DataFrame’ object has no attribute ‘sort’ AttributeError: 'DataFrame' object has no attribute 'to_datetime' tweets_df['Time'] = pd.to_datetime(tweets_df['Time']) 3. The problem is that there are spaces in your column names; here is what I get when I save your data and load the dataframe as you have done: