We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b46e84 commit be90ce7Copy full SHA for be90ce7
1 file changed
easyPythonpi/methods/stringmainpulation.py
@@ -1,13 +1,14 @@
1
-import easyPythonpi as pi
2
-import regex as re
3
-
4
"""
5
-Simple string manipulation great for data cleaning and processing for eg. tokenization or ML models. All methods are self-explanatory:
+Simple string manipulation great for data cleaning and processing for e.g. tokenization or ML models. All methods are self-explanatory:
6
remove_punctuation removes all punctuation
7
count_vowels counts the number of vowels in a string and returns a dictionary with count
8
is_palindrome checks if the given string is a palindrome or not and returns a boolean value
9
10
+import easyPythonpi as pi
+import regex as re
+
11
12
def remove_punctuation(my_str:'str')->'str':
13
punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
14
# remove punctuations from the string
0 commit comments