Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created October 8, 2020 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/13faf2b7fa9758aec4099bd09b1a5430 to your computer and use it in GitHub Desktop.
Save amankharwal/13faf2b7fa9758aec4099bd09b1a5430 to your computer and use it in GitHub Desktop.
df = pd.read_csv('lang_data.csv') # Read raw data
df = df.dropna() # remove null values for the "text" column
df['text'] = df['text'].astype(str) # Convert the column "text" from object to a string in order to operate on it
df['language'] = df['language'].astype(str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment