marcelomoreno26 commited on
Commit
071db21
1 Parent(s): c7cbc23

Update preprocessor.py

Browse files
Files changed (1) hide show
  1. preprocessor.py +1 -1
preprocessor.py CHANGED
@@ -78,7 +78,7 @@ def preprocess_whatsapp_messages(file_path, file_type):
78
  df['date'] = pd.to_datetime(df['date'])
79
  df['text'] = df['text'].astype(str)
80
 
81
- return df
82
 
83
  def get_dated_input(data, selected_date):
84
  '''
 
78
  df['date'] = pd.to_datetime(df['date'])
79
  df['text'] = df['text'].astype(str)
80
 
81
+ return df.sort_values(by="date")
82
 
83
  def get_dated_input(data, selected_date):
84
  '''