0

I want to draw a trendline for this dataframe separately for each country. What would be the python syntax for that? Image of data here.

ghg["Net Emissions"]=ghg.sum(axis=1)

aa=sorted.iloc[0:10]
aaa=aa.head(10)
sns.catplot(x="Country", y="Net Emissions", kind="bar", data=aaa,height=5, aspect=25/8)

I tried this code for barplot but I want a trendline separetly for each row.

xihtyM
  • 240
  • 1
  • 2
  • 9
feri
  • 1
  • Post data in text format that can be copy-pasted and used as a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example), not as screenshots. See: [Why not upload images of code/data/errors when asking a question?](https://meta.stackoverflow.com/q/285551/). Also see [How to make good reproducible pandas examples](https://stackoverflow.com/questions/20109391). – AlexK Mar 25 '23 at 07:38

0 Answers0