Skip to content

Commit c391a33

Browse files
committed
remove px import
1 parent 1a182ff commit c391a33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/graphing-multiple-chart-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ fig.show()
6363
In this example, we display individual data points with a grouped scatter chart and show averages using a grouped bar chart. `offsetgroup` links the bar trace for smoker with the scatter trace for smoker, and the bar trace for non-smoker with the scatter trace for non-smoker. If you deselect a trace using the legend, other traces maintain the position of the traces they are linked to.
6464

6565
```python
66-
import plotly.express as px
6766
import plotly.graph_objects as go
67+
from plotly import data
6868

69-
df = px.data.tips()[px.data.tips()["day"] == "Sun"]
69+
df = data.tips()[data.tips()["day"] == "Sun"]
7070

7171
mean_values_df = df.groupby(by=["sex", "smoker"], as_index=False).mean(
7272
numeric_only=True

0 commit comments

Comments
 (0)