Giter VIP home page Giter VIP logo

Comments (5)

jmbejara avatar jmbejara commented on August 17, 2024 1

Yeah, you should be getting two numbers. During the course of the tournament, each team received a number of each card. The question we're trying to compute is, how many of each card did the average team receive?

Does this help?

from comp-econ-sp18.

afgong avatar afgong commented on August 17, 2024

Also, for Q8, should we create two DataFrames to sort Red Cards and Yellow Cards, separately? My intuition is that you can't sort the two columns at the same time since the corresponding team may not be sorted in the same order as the two colors of cards. But I may be wrong!

from comp-econ-sp18.

Jacob-Bishop avatar Jacob-Bishop commented on August 17, 2024

The explanation for #8 seems to suggest that you sort by red cards, then sort within each red-card level by yellow cards.
For #9, it's directly opposed to 'per-game', so I think all it means is that you shouldn't be calculating mean cards per game.

I could of course be wrong, though.

from comp-econ-sp18.

jmbejara avatar jmbejara commented on August 17, 2024

Hi @afgong. Jacob is correct here on both counts. I want to sort by red cards and use yellow cards to break ties. As for the average, I want two numbers in the end that are interpreted as the average number of yellow cards given out to each team during the course of the tournament and the average number of red cards given out to each team during the course of the tournament.

from comp-econ-sp18.

alykhanb96 avatar alykhanb96 commented on August 17, 2024

for number 9:
I just use the code
discipline.mean()
I feel like i'm misunderstanding though? what do we mean by average number of yellow cards given out to each team?
Is this just the average of yellow cards?
my output gives me:

Yellow Cards something
Red Cards something
dtype: float64

from comp-econ-sp18.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.