Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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