Forum Discussion
carlosxxss
3 years agoRegular Visitor
Showing table with python containing trendline formula from scatter plot
I have a Python script running in Power BI desktop that shows a scatter plot with a exponential and linear trendline. Also it shows the formula of the trendlines and the R-squared value. My dataset c...
lbendlin
3 years agoSuper User
The Python visual MUST plot something. If you want a table, plot a table. pandas.plotting.table — pandas 2.0.1 documentation (pydata.org)
- carlosxxss3 years agoRegular Visitor
Hi Ibendlin. Thanks this points me in the right direction but not exactly what i wanted. I created the table below. But i want to move the exponential en linear trendline to the columns and on the rows i want the different segments.
What i have now:
What i want:
Segment Exponential formula Linear formula Exponential R-squared Linear R-squared Segment 1 Segment 2 I have a sample dataset in this onedrive link: https://1drv.ms/u/s!AotJBlCCCXxigpNv7xxhBpxVSxeUYQ?e=xY5PJh
I can't figure out this next step