From 0b46e841772015c081f138e78546cb5324ce9f93 Mon Sep 17 00:00:00 2001 From: Aadya Date: Fri, 3 Jul 2026 18:17:35 +0530 Subject: [PATCH 1/2] Brief documentation added for strung manipulation method --- easyPythonpi/methods/stringmainpulation.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/easyPythonpi/methods/stringmainpulation.py b/easyPythonpi/methods/stringmainpulation.py index ef63674..3de6803 100644 --- a/easyPythonpi/methods/stringmainpulation.py +++ b/easyPythonpi/methods/stringmainpulation.py @@ -1,6 +1,13 @@ import easyPythonpi as pi import regex as re +""" +Simple string manipulation great for data cleaning and processing for eg. tokenization or ML models. All methods are self-explanatory: +remove_punctuation removes all punctuation +count_vowels counts the number of vowels in a string and returns a dictionary with count +is_palindrome checks if the given string is a palindrome or not and returns a boolean value +""" + def remove_punctuation(my_str:'str')->'str': punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~''' # remove punctuations from the string From be90ce7618080a2ba94e18f5ceab4fbb4e9635b4 Mon Sep 17 00:00:00 2001 From: Aadya Date: Fri, 3 Jul 2026 18:22:11 +0530 Subject: [PATCH 2/2] slight edits to previous documentation --- easyPythonpi/methods/stringmainpulation.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/easyPythonpi/methods/stringmainpulation.py b/easyPythonpi/methods/stringmainpulation.py index 3de6803..296575a 100644 --- a/easyPythonpi/methods/stringmainpulation.py +++ b/easyPythonpi/methods/stringmainpulation.py @@ -1,13 +1,14 @@ -import easyPythonpi as pi -import regex as re - """ -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: remove_punctuation removes all punctuation count_vowels counts the number of vowels in a string and returns a dictionary with count is_palindrome checks if the given string is a palindrome or not and returns a boolean value """ +import easyPythonpi as pi +import regex as re + + def remove_punctuation(my_str:'str')->'str': punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~''' # remove punctuations from the string