Help with Histogram and Boxplot in Python

  • Context: Python 
  • Thread starter Thread starter SShep71
  • Start date Start date
  • Tags Tags
    Histogram Python
Click For Summary

Discussion Overview

The discussion revolves around a request for assistance with creating a histogram and a boxplot in Python, specifically for analyzing annual rainfall data in Los Angeles. The context includes a statistics course requirement and the participant's lack of prior coding experience.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • The original poster (OP) seeks help with Python code to create a histogram and a boxplot for rainfall data.
  • Some participants express frustration over the OP's lack of effort and request clarification on the graphics toolkit being used for plotting.
  • One participant suggests that the OP is likely expected to use the pyplot library for creating the plots, implying that resources for examples are available online.
  • The OP indicates a lack of understanding of terms like ASCII and graphics toolkit, stating their only programming experience is with G-code.

Areas of Agreement / Disagreement

Participants generally do not agree on the level of effort required from the OP, with some emphasizing the need for more information and effort before providing assistance. There is no consensus on the specific approach or toolkit the OP should use.

Contextual Notes

There are limitations in the OP's understanding of programming concepts and tools, which may affect their ability to complete the assignment. The discussion does not resolve the specific requirements for the graphics toolkit or the expected output format.

Who May Find This Useful

This discussion may be useful for students new to programming in Python, particularly those working on statistical data visualization tasks in a coursework context.

SShep71
Messages
5
Reaction score
0
I could really use some help here, I am a transfer student so my course load is all out of order. I have a statistics course that requires me to use Python to solve this one question (the 2 parts shown below). I never took any sort of coding before, I don't know where to even start. Can anyone help with this boxplot and histogram? So I can input it into my Lab report.
The weather in Los Angeles is dry most of the time, but it can be quite rainy in the winter. The rainiest month of the year is February. The following table presents the annual rainfall in Los Angeles, in inches, for each February from 1965 to 2006.

Using Python:

2) Construct a histogram for these data.

4) Construct a boxplot for these data. Does the box-plot show any outliers?
php7Y0XKA.png
 
Technology news on Phys.org
You will need to show a lot more effort than that to get much help from us. What graphics toolkit (Tk) do you have that you want to use to plot these histograms? Or are you expected to plot them using ASCII output...?
 
I really want to provide more, but I honestly don't know what ASCII or a toolkit is at this point. The only programming I have ever done is G-code for CNC machine. All my instructions say is" Provide Python code and two plots" for the question and two plots.
 
berkeman said:
You will need to show a lot more effort than that to get much help from us. What graphics toolkit (Tk) do you have that you want to use to plot these histograms? Or are you expected to plot them using ASCII output...?
I would guess that the OP is expected to use pyplot. Examples of histograms and box plots using pyplot can be located with a search engine.
 
Last edited:
  • Informative
Likes   Reactions: berkeman

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
Replies
2
Views
3K
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
31K