Created
February 11, 2019 19:30
-
-
Save sleepless-se/d97da216158de2c44219fb089620c0eb to your computer and use it in GitHub Desktop.
pandas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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