import pandas as pd import seaborn as sns import plotly.express as px import matplotlib.pyplot as plt import numpy as np
tips dataset. Each row represents one table that ate at a restaurant. For example, the top row of the table was a table for 2 eating dinner on a Sunday, where the person who paid the check was female and not a smoker. This table had a \$16.99 total bill, and they tipped \\$1.01.
df = sns.load_dataset("tips") df.head()
In many cultures, it is customary to tip based on the total bill. This data appears to have been collected from such a culture.
px.scatter(df, x = "total_bill", y = "tip")