Skip to content
Introduction to Statistics in Python
Run the hidden code cell below to import the data used in this course.
Take Notes
Add notes about the concepts you've learned and code cells with code you want to keep.
This code is for choosing values in a dataframe column that are specific to the plot:
# Example, create a histogram for x column of dataframe of y values
# Create histogram of co2_emission for food_category 'beef'
food_consumption[food_consumption['food_category'] == 'beef']['co2_emission'].hist()
# Show plot
plt.show()