How to Draw Line Plot using Seaborn Github

Free Machine Learning courses with 130+ real-time projects Start Now!!

Program 1

# # Applcation of Seaborn Line plot using Seaborn gitgub


import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns


df_tips=sns.load_dataset("tips")
df_tips.head()


df_tips.info()


df_tips.isnull().sum()


df_tips.shape


sns.lineplot(x="tip",y="total_bill",data=df_tips)


sns.lineplot(x="tip",y="size",data=df_tips)
plt.show()


df_tips1=pd.read_csv("D://scikit_data/Billing/tips.csv")


df_tips1.head()


# Graph for tips and Bill 
sns.lineplot(x="tip",y="total_bill",data=df_tips)


# Graph for tips and Total Person
sns.lineplot(x="tip",y="size",data=df_tips)


# Graph for tips and Gender
sns.lineplot(x="tip",y="sex",data=df_tips)

 

Did you know we work 24x7 to provide you best tutorials
Please encourage us - write a review on Google

courses

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *