Question: 1 PandasA 3 - FOR CREDIT Create a . ipynb file called PandasA 3 credit.ipynb and complete the following. For this assignment load but DO

1
PandasA3- FOR CREDIT
Create a .ipynb file called PandasA3credit.ipynb and complete the following.
For this assignment load but DO NOT INSTALL NumPy and Pandas: run the following at
the top of your script and then complete the questions:
import numpy as np
import pandas as pd
Assume all arrays are NumPy arrays, all Series are Pandas series, etc., unless
otherwise specified
Everything is case sensitive, so BE CAREFUL
After you create the object (e.g., Q1), DO NOT PRINT! Your file should something look
like this:
Q1=[Hello]
Q2= x[3:]
Before attempting these make sure to watch CodeGrade
Walkthrough in module 1- if you do not you will not
understand how assignments work!
For reference:
CodeGrade tips and FAQ
CodeGrade - What to do if my code doesnt work?
Create series from the following two dictionaries:
From those series create a dataframe called q1, such that the first series represents the
lowercase column and the second series represents the numbers column.
Index that dataframe to obtain the following:
Assign it to Q1.
Slice the dataframe to obtain the following:
Assign it to Q2.
Using .loc, obtain the following from q1:
Assign it to Q3.
Using .loc, obtain the following from q1:
Assign it to Q4.
Using .loc, obtain the following from q1:
Assign it to Q5.
Using .loc, obtain the following from q1:
Assign it to Q6.
Using .loc, obtain the following from q1:
Assign it to Q7.
Using .loc, obtain the following from q1:
Assign it to Q8.
Using .loc, obtain the rows from q1 with numbers less than three. Assign it to
Q9.
Using .iloc, obtain the following from q1:
Assign it to Q10.
Using .iloc, obtain the following from q1:
Assign it to Q11.
Using .iloc, obtain the following from q1:
Assign it to Q12.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!