text_plain_output_2.png text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import matplotlib.pyplot as plt

import matplotlib.pyplot as plt

import matplotlib.pyplot as plt

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd

import pandas as pd
days_of_week = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
calory_intake = [2385, 1543, 1293, 2019, 4201, 1203, 2309]
weekly_calory_count = pd.DataFrame({'Days': days_of_week, 'Calories': calory_intake})

import pandas as pd
import matplotlib.pyplot as plt
ser = pd.Series([71, 67, 78, 90], index=('Q1', 'Q2', 'Q3', 'Q4'))

import pandas as pd
import matplotlib.pyplot as plt
ser = pd.Series([77, 65, 34, 93], index=('Math', 'Science', 'English', 'Business'))

import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({'Group': ['A', 'B', 'C', 'D', 'E'], 'Value': [4, 2, 5, 10, 9]})
plt.barh(y=df.Group, width=df.Value)

import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({'Group': ['Students', 'Teachers', 'Supervisors', 'Employees', 'Assistants'], 'Value': [2000, 300, 54, 450, 23]})

import pandas as pd
  
# Creating a Data frame
value = pd.DataFrame({
    'Length': [3.40, 6.39, 3.20, 6.50, 1.3],
    'Width': [7.6, 3.6, 0.45, 23.5, 3.2]
})
  
# Creating Histograms of columns 'Length' and 'Width' using the pandas histogram function : .hist()
# function
hist = value.hist(bins=5)

import pandas as pd
values = pd.DataFrame({'Length': [2.7, 8.7, 3.4, 2.4, 1.9, 3.4, 5.6], 'Breadth': [4.24, 2.67, 7.6, 7.1, 4.9, 6.5, 3.4]})

import pandas as pd
nba_champions = pd.Series(index=[2015, 2016, 2017, 2018, 2019, 2021], data=['Golden State Warriors', 'Golden State Warriors', 'Golden State Warriors', 'Toronto Raptors', 'Los Angeles Lakers', 'Milwaukee Bucks'], name='Winners')
nba_champions_counter = nba_champions.value_counts()

import pandas as pd
wimbledon_winners = pd.Series(index=[2015, 2016, 2017, 2018, 2019], data=['Novak Djokovic', 'Andy Murray', 'Roger Federer', 'Novak Djokovic', 'Novak Djokovic'], name='Winners')

import pandas as pd
data = {'Name': ['Ben', 'Sally', 'Joseph', 'Penny', 'Jackson', 'Elizabeth'], 'Age': [20, 18, 27, 50, 12, 15]}
df = pd.DataFrame(data=data)
df.plot.scatter(x='Name', y='Age', s=100)