Write A phyton code to read A dataset and print all Features i.e. columns of the dataset. Determine the descriptive statics i.e. maximum, minimum mean median, count, variance, standard deviation etc. of the numeric Features like age, salary, etc. May be present in the dataset.
#We can read in a dataset using the pandas library
df = pd.read_csv('tips.csv')
#the read_csv command is used to read csv files, we can use read_excel command for excel files
#to print the features of the dataset we can use this command
df.info()
#to print out the descriptive statistics, we use this command
df.descr()
Comments
Leave a comment