EricR401S commited on
Commit
b51128e
1 Parent(s): ec42311

fast commits

Browse files
Files changed (1) hide show
  1. Pill_Ideologies-Post_Titles.py +1 -1
Pill_Ideologies-Post_Titles.py CHANGED
@@ -274,7 +274,7 @@ class SubRedditPosts(datasets.GeneratorBasedBuilder):
274
  "is_video": row.get("is_video"),
275
  }
276
 
277
- def process_data(df):
278
  """This function takes a dataframe and processes it to remove any unwanted columns and rows"""
279
  # columns that cannot be empty,so drop rows
280
  df = df.dropna(subset=["subreddit"])
 
274
  "is_video": row.get("is_video"),
275
  }
276
 
277
+ def process_data(self, df):
278
  """This function takes a dataframe and processes it to remove any unwanted columns and rows"""
279
  # columns that cannot be empty,so drop rows
280
  df = df.dropna(subset=["subreddit"])