Skip to content

Instantly share code, notes, and snippets.

@sleepless-se
Created February 11, 2019 19:30
Show Gist options
  • Save sleepless-se/d97da216158de2c44219fb089620c0eb to your computer and use it in GitHub Desktop.
Save sleepless-se/d97da216158de2c44219fb089620c0eb to your computer and use it in GitHub Desktop.
pandas
lis = []
new_df = raw_df['text'].apply(lambda x :prepro(x))
for i in range(len(new_df)):
# print(new_df[i:i+1].values[0])
lis.append(new_df[i:i+1].values[0])
print(lis)
new_df = pd.DataFrame(lis)
new_df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment