Skip to content

Noemí - lab-pandas #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

niniet98
Copy link

No description provided.

@sh-ih
Copy link

sh-ih commented Oct 23, 2023

You’ll dream of pandas at the end of this bootcamp! Congrats on a very good lab

Some comments,

  1. Return the third value: remember indexing starts at 0, so to get the third value you needed to run series[2] not series[3]

  2. Get the average Score_3 value
    You imported stats and your answer is correct. I just want to remind you that pandas also has the mean() method. You are going to be using a lot of panda's methods so it is a good idea to start using them now:

score_3_mean = df['Score_3'].mean()
print(score_3_mean)

Same with questions 8
score_4_max = df['Score_4'].max()

9
score_2_median = df['Score_2'].median()

11

print("Total Quantity:", df2["Quantity"].sum())
print("Total Revenue:", df2["Revenue"].sum())](url)

12

min_price = df2['UnitPrice'].min()
max_price = df2['UnitPrice'].max()
print(max_price-min_price)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants