Generate a boxplot for the variable “numberOfProjects” and get the median value for the number of projects where the employees have worked on. For data science using Python in Anaconda - Jupyter
#import the library Pandas
import pandas as pd
#Put the People Charm case.csv dataset on Root Directory
#Read the dataset
data = pd.read_csv('People Charm case.csv')
#Generate a boxplot for the variable “numberOfProjects”.
#get the median value for the number of projects where the employees have worked on.
import matplotlib.pyplot as plt
import seaborn as sns
sns.boxplot(y=data["numberOfProjects"])
Output:-