I was testing around this matplot lib code and found this error
Feedback Type:
Frown (Error)
Timestamp:
2018-08-13T13:59:33.2130350Z
Local Time:
2018-08-13T18:59:33.2130350+05:00
Session ID:
03aea190-3aea-4697-801f-c50bf42abef1
Release:
August 2018
Product Version:
2.61.5192.541 (18.08) (x64)
Error Message:
Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 36, in <module>
plt.show(block=False)
TypeError: <lambda>() got an unexpected keyword argument 'block'
OS Version:
Microsoft Windows NT 10.0.17134.0 (x64 en-US)
CLR Version:
4.7 or later [Release Number = 461808]
Peak Virtual Memory:
38.2 GB
Private Memory:
450 MB
Peak Working Set:
576 MB
IE Version:
11.165.17134.0
User ID:
cac819f4-0175-4dab-9b9b-f34082057ccf
Workbook Package Info:
1* - en-US, Query Groups: 0, fastCombine: Enabled, runBackgroundAnalysis: True.
Telemetry Enabled:
True
Model Default Mode:
Import
Snapshot Trace Logs:
C:\Users\Raza\Microsoft\Power BI Desktop Store App\FrownSnapShot1290279189.zip
Performance Trace Logs:
C:\Users\Raza\Microsoft\Power BI Desktop Store App\PerformanceTraces.zip
Enabled Preview Features:
PBI_shapeMapVisualEnabled
PBI_newFromWeb
CustomConnectors
PBI_variationUIChange
PBI_canvasTooltips
PBI_PythonSupportEnabled
PBI_showIncrementalRefreshPolicy
PBI_compositeModels
PBI_DB2DQ
Disabled Preview Features:
PBI_SpanishLinguisticsEnabled
Disabled DirectQuery Options:
TreatHanaAsRelationalSource
Cloud:
GlobalCloud
DPI Scale:
100%
Supported Services:
Power BI
Formulas:
section Section1;
shared policies = let
Source = Csv.Document(File.Contents("File url"),[Delimiter=",", Columns=2, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", type text}}),
#"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"policyId", type text}, {"policyNumber", type text}})
in
#"Changed Type1";
shared policyholders = let
Source = Csv.Document(File.Contents("File url"),[Delimiter=",", Columns=2, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", type text}}),
#"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"revisionId", type text}, {"policyholderName", type text}}),
#"Sorted Rows" = Table.Sort(#"Changed Type1",{{"revisionId", Order.Ascending}}),
#"Removed Duplicates" = Table.Distinct(#"Sorted Rows")
in
#"Removed Duplicates";
shared revisions = let
Source = Csv.Document(File.Contents("File url"),[Delimiter=",", Columns=10, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"revisionDate", type datetime}, {"cancelDate", type datetime}, {"commitDate", type datetime}, {"dateArchived", type datetime}, {"createDate", type datetime}, {"revisionId", type text}, {"policyId", type text}, {"policyStatus", type text}, {"writtenPremium", Currency.Type}, {"revisionState", type text}}),
#"Sorted Rows" = Table.Sort(#"Changed Type",{{"createDate", Order.Ascending}, {"policyId", Order.Ascending}})
in
#"Sorted Rows";
shared FactTable = let
Source = Csv.Document(File.Contents("File url"),[Delimiter=",", Columns=6, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"writtenFee", Currency.Type}, {"writtenPremium", Currency.Type}})
in
#"Changed Type";
shared CleanedFees = let
Source = Csv.Document(File.Contents("file url"),[Delimiter=",", Columns=4, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"revisionId&policyTypeItemName", type text}, {"revisionId", type text}, {"policyTypeItemName", type text}, {"writtenFee", Int64.Type}})
in
#"Changed Type";
THis is the url of the code I was testing