Forum Discussion
python script error
- 8 years ago
Power BI team fixed the problem
I think the main issue is here in the error message...
TypeError: from_bounds() takes 4 positional arguments but 6 were given
The line that Python was trying to execute was this:
self.bbox_inches = Bbox.from_bounds(0, 0, *figsize)
Maybe get rid of the 0's?
Are you trying to make a visual or uploading data using python script?
Have you tested out the code in an IDE?
- vdburg8 years ago
Resolver I
Hi,
I just loaded a simple excel file with a small table to discard any problem coming from the data. It´s just this table
Year Revenue 2010 100000 2011 200000 2012 300000 2013 400000 2014 500000 I am trying to make a visual. I am just running this code:
import matplotlib.pyplot as plt
plt.bar(dataset.Year, dataset.Revenue)And this works in any other IDE
or just running dataset to see the table. Or any other simple code it always returns the same error.