Skip to content

Commit be90ce7

Browse files
committed
slight edits to previous documentation
1 parent 0b46e84 commit be90ce7

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

easyPythonpi/methods/stringmainpulation.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
import easyPythonpi as pi
2-
import regex as re
3-
41
"""
5-
Simple string manipulation great for data cleaning and processing for eg. tokenization or ML models. All methods are self-explanatory:
2+
Simple string manipulation great for data cleaning and processing for e.g. tokenization or ML models. All methods are self-explanatory:
63
remove_punctuation removes all punctuation
74
count_vowels counts the number of vowels in a string and returns a dictionary with count
85
is_palindrome checks if the given string is a palindrome or not and returns a boolean value
96
"""
107

8+
import easyPythonpi as pi
9+
import regex as re
10+
11+
1112
def remove_punctuation(my_str:'str')->'str':
1213
punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
1314
# remove punctuations from the string

0 commit comments

Comments
 (0)