Answers for "plot bar"

3

matplotlib bar chart

import matplotlib.pyplot as plt

# Create a Simple Bar Plot of Three People's Ages

# Create a List of Labels for x-axis
names = ["Brad", "Bill", "Bob"]

# Create a List of Values (Same Length as Names List)
ages = [9, 5, 10]

# Make the Chart
plt.bar(names, ages)

# Show the Chart
plt.show()
Posted by: Guest on July-04-2020
0

bar plot

sns.barplot(x='sex',y='total_bill',data=t)Copy
Posted by: Guest on June-26-2021
0

bar plot

df.groupby('species').mean().plot.bar()
Posted by: Guest on June-03-2021
0

bar plot

sns.boxplot(x="day",y="total_bill",hue="smoker",data=t, palette="coolwarm")Copy
Posted by: Guest on June-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language