We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove_punctuation()
>>> import texthero as hero >>> import pandas as pd >>> import string >>> >>> s = pd.Series(rf"{string.punctuation}") >>> hero.remove_punctuation(s) 0 \ dtype: object
The text was updated successfully, but these errors were encountered:
Hi, I could act on this question. Do you have any suggestions or can I start working from scratch?
A solution that could even improve the performance of the method:
import string s = "dakmdalk\@....dada" exclude = set(string.punctuation) table = str.maketrans('', '', string.punctuation) a = s.translate(table) print(a) # "dakmdalkdada"
Sorry, something went wrong.
Hey, happy to receive your PR @richecr !
No branches or pull requests
The text was updated successfully, but these errors were encountered: