dropping
• Import pandas as pd;
Import numpy as np;
• df=pf.read_csv('[Link]
master/[Link]')
• [Link]( )
• df=pf.read_csv('[Link]
master/[Link]')
• [Link]( )
• print([Link]().sum())
• [Link](“cabin”,axis=1)
• print([Link]().sum()
MEAN • df["Age"]=df["Age"].replace([Link], df["Age"].mean( ))
print([Link]().sum()
• df
MEDIAN •df[“Age”]=df["Age"].replace([Link], df["Age"].median( ))
print([Link]().sum()
• df
MODE •Import statIstics
df["Age"]=df["Age"].replace([Link], [Link] ( ["Age"]))
print([Link]( ).sum( )
• [Link](inplace=True)
print([Link]( ).sum( ))
LINE CHART import [Link] as plt
x = [10, 20, 30, 40]
y = [20, 25, 35, 55]
[Link](x, y)
[Link]("Line Chart")
[Link]('Y-Axis')
[Link]('X-Axis')
[Link]()
BAR CHART import [Link] as plt
import pandas as pd
data = pd.read_csv('[Link]')
x = data['day']
y = data['total_bill']
[Link](x, y)
[Link]("Tips Dataset")
[Link]('Total Bill')
[Link]('Day')
[Link]()
HISTOGRAM import [Link] as plt
import pandas as pd
data = pd.read_csv('[Link]')
x = data['total_bill']
[Link](x)
[Link]("Tips Dataset")
[Link]('Frequency')
[Link]('Total Bill')
[Link]()
SCATTER POINT import [Link] as plt
import pandas as pd
# Reading the [Link] file
data = pd.read_csv('[Link]')
# initializing the data
x = data['day']
y = data['total_bill']
# plotting the data
[Link](x, y)
# Adding title to the plot
[Link]("Tips Dataset")
# Adding label on the y-axis
[Link]('Total Bill')
# Adding label on the x-axis
[Link]('Day')
[Link]()
PIE CHART import [Link] as plt
import pandas as pd
# Reading the [Link] file
data = pd.read_csv('[Link]')
# initializing the data
cars = ['AUDI', 'BMW', 'FORD',
'TESLA', 'JAGUAR',]
data = [23, 10, 35, 15, 12]
# plotting the data
[Link](data, labels=cars)
# Adding title to the plot
[Link]("Car data")
[Link]()
BOX PLOT import [Link] as plt
import numpy as np
[Link](10)
data = [[Link](0, std, 100) for std in range(1, 4)]
# Create a box plot
[Link](data, vert=True, patch_artist=True,
boxprops=dict(facecolor='skyblue'),
medianprops=dict(color='red'))
[Link]('Data Set')
[Link]('Values')
[Link]('Example of Box Plot')
[Link]()
HEATMAP import [Link] as plt
import numpy as np
[Link](0)
data = [Link](10, 10)
# Create a heatmap
[Link](data, cmap='viridis', interpolation='nearest')
# Add a color bar to show the scale
[Link]()
[Link]('X-axis Label')
[Link]('Y-axis Label')
[Link]('Example of Heatmap')
[Link]()