I want to draw a scatter trend line on matplot. How can I do that?
Python
import pandas as pd import matplotlib.pyplot as plt csv = pd.read_csv(\'/tm
You also can use Seaborn lmplot:
import seaborn as sns import pandas as pd from io import StringIO textfile = StringIO("""fee,time 100,650 90,700 80,860 70,800 60,1000 50,1200""") df = pd.read_csv(textfile) _ = sns.lmplot(x='fee', y='time', data=df, ci=None)
Output: