diff --git a/vizro-core/examples/_dev/utils/_deviation.py b/vizro-core/examples/_dev/utils/_deviation.py index d1dd94098..7e591848f 100644 --- a/vizro-core/examples/_dev/utils/_deviation.py +++ b/vizro-core/examples/_dev/utils/_deviation.py @@ -86,11 +86,7 @@ Use Scatter Plots when you want to show the relationship between two variables. Scatter plots are sometimes called Correlation plots because they show how two variables are correlated. Scatter plots are ideal when you have paired numerical data and you want to see if one variable impacts the other. However, do remember that correlation is not causation, and another unnoticed variable may be influencing results. Make sure your audience does not draw the wrong conclusions. """ ), - vm.Graph( - figure=px.scatter( - iris, x="sepal_width", y="sepal_length", color="species" - ) - ), + vm.Graph(figure=px.scatter(iris, x="sepal_width", y="sepal_length", color="species")), CodeClipboard( text=""" ```python diff --git a/vizro-core/examples/_dev/utils/_magnitude.py b/vizro-core/examples/_dev/utils/_magnitude.py index a5250e921..2579c3d7b 100644 --- a/vizro-core/examples/_dev/utils/_magnitude.py +++ b/vizro-core/examples/_dev/utils/_magnitude.py @@ -41,9 +41,7 @@ ), vm.Graph( figure=px.bar( - data_frame=tips.groupby("day") - .agg({"total_bill": "sum"}) - .reset_index(), + data_frame=tips.groupby("day").agg({"total_bill": "sum"}).reset_index(), x="total_bill", y="day", orientation="h",