diff --git a/reading_csv.py b/reading_csv.py new file mode 100644 index 00000000000..bc8fee6334f --- /dev/null +++ b/reading_csv.py @@ -0,0 +1,16 @@ +import pandas as pd + +# reading csv file into python +df= pd.read_csv("c:\PROJECT\Drug_Recommendation_System\drug_recommendation_system\Drugs_Review_Datasets.csv") # Replace the path with your own file path + +print(df) + +# Basic functions +print(df.info()) # Provides a short summary of the DataFrame +print(df.head()) # prints first 5 rows +print(df.tail()) # prints last 5 rows +print(df.describe()) #statistical summary of numeric columns +print(df.columns) # Returns column names +print(df.shape) # Returns the number of rows and columnsrr + +print(help(pd)) # Use help(pd) to explore and understand the available functions and attributes in the pandas (pd) lib \ No newline at end of file