From 3d8841b545db0f8fe14de0b45a39ba0876f7d9df Mon Sep 17 00:00:00 2001 From: Abhilash Date: Mon, 12 May 2025 12:33:24 +0530 Subject: [PATCH 1/2] added basic csv reading script by using python --- CSV_file.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 CSV_file.py diff --git a/CSV_file.py b/CSV_file.py new file mode 100644 index 00000000000..d67e23064c4 --- /dev/null +++ b/CSV_file.py @@ -0,0 +1,14 @@ +import pandas as pd + +# loading the dataset + +df= pd.read_csv(r"c:\PROJECT\Drug_Recommendation_System\drug_recommendation_system\Drugs_Review_Datasets.csv") + +print(df) #prints Dataset +# funtions +print(df.tail()) +print(df.head()) +print(df.info()) +print(df.describe()) +print(df.column) +print(df.shape()) \ No newline at end of file From 9ed1c4b213c3dfd13b1f9f7cd4632bc83d7caedd Mon Sep 17 00:00:00 2001 From: Abhilash Date: Tue, 13 May 2025 16:56:50 +0530 Subject: [PATCH 2/2] added a simple palindrome python script --- string_palin.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 string_palin.py diff --git a/string_palin.py b/string_palin.py new file mode 100644 index 00000000000..1349f993c4c --- /dev/null +++ b/string_palin.py @@ -0,0 +1,20 @@ +# + +# With slicing -> Reverses the string using string[::-1] + + +string= input("enter a word to check.. ") +copy=string[::-1] +if string == copy: + print("Plaindrome") +else: + print("!") + +# Without slicing –> Reverses the string manually using a loop +reverse_string="" +for i in string: + reverse_string=i+reverse_string +if string == reverse_string: + print(reverse_string) +else: + print("!") \ No newline at end of file