Pandas Assignment
Pandas Assignment
1) From given data set print first and last five rows
2) Print All Toyota Cars details (hint: use groupby function)
3) Count total cars per company (by using value_counts function)
4) Find each company’s Higesht price car. (hint: Groupby function and then apply .max
function)
5) Find the average mileage of each car making company (hint: Groupby function and then
apply .mean function)
6) Sort all cars by Price column (hint: using sort_values function).
7) Check for the null values for entire dataset.
A) change all the categorical columns into numerical by creating Dummies and using label
encoder.
D) After doing all the changes in bank dataset. save the file in your directory in Csv
Format.(hint: by using .to_csv)