lalithadevi commited on
Commit
9c90a67
1 Parent(s): 90c8eef

Update news_category_similar_news_prediction.py

Browse files
news_category_similar_news_prediction.py CHANGED
@@ -105,8 +105,9 @@ def add_flags_to_prediction_df(df):
105
  df['text'] = headlines_desc
106
  df['used_for_training'] = 0
107
  df['allocated'] = 0
 
108
 
109
- df.drop(columns=['similar_news', 'parsed_date', 'src', 'title', 'description'], inplace=True)
110
  return df
111
 
112
 
 
105
  df['text'] = headlines_desc
106
  df['used_for_training'] = 0
107
  df['allocated'] = 0
108
+ df.rename(columns={'category', 'y_pred', 'parsed_date': 'date_time'}, inplace=True)
109
 
110
+ df.drop(columns=['similar_news', 'src', 'title', 'description'], inplace=True)
111
  return df
112
 
113