Module 5 Pandas Assignment Updated
Module 5 Pandas Assignment Updated
Pandas Assignment - 1
Problem Statement:
You work in XYZ Company as a Python. The company officials want you to build a python program.
1. Write a function that takes start and end of a range returns a Pandas series object containing
numbers within that range.
In case the user does not pass start or end or both they should default to 1 and 10 respectively.
eg.
range_series() -> Should Return a pandas series from 1 to 10
2. Create a function that takes in two lists named keys and values as arguments.
The methods should return a new pandas dataframe with keys as column names and values as
their corresponding values
e.g. -> create_dataframe(["One", "Two"], [["X", "Y"], ["A", "B"]]) -> should return a dataframe
One Two
0 X A
1 Y B
support@intellipaat.com - +91-7022374614 - US: 1-800-216-8930 (Toll Free)
Python for Data Science Certification Course
3. Create a function that concatenates two dataframes. Use previously created function to create
two dataframes and pass them as parameters Make sure that the indexes are reset before
returning:
4. Write code to load data from cars.csv into a dataframe and print its details. Details like: 'count',
'mean', 'std', 'min', '25%', '50%', '75%', 'max'.
5. Write a method that will take a column name as argument and return the name of the column
with which the
The returned value should not the column named that was passed as the parameters.