Skip to content

Commit b1bcd08

Browse files
PR comments
1 parent 02109c8 commit b1bcd08

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/python/plotly/plotly/data/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ def timeseries():
117117
def experiment():
118118
"""
119119
Each row in this wide dataset represents the results of 100 simulated participants
120-
on three hypothetical experiments, along with their gender and smoker status.
120+
on three hypothetical experiments, along with their gender and control/treatment group.
121121
122122
Returns:
123123
A `pandas.DataFrame` with 100 rows and the following columns:
124-
`['experiment_1', 'experiment_2', 'experiment_3', 'gender', 'smoker']`.
124+
`['experiment_1', 'experiment_2', 'experiment_3', 'gender', 'group']`.
125125
"""
126126
return _get_dataset("experiment")
127127

packages/python/plotly/plotly/express/_core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,10 @@ def _get_reserved_col_names(args):
936936

937937

938938
def _is_col_list(df_input, arg):
939+
"""Returns True if arg looks like it's a list of columns or references to columns
940+
in df_input, and False otherwise (in which case it's assumed to be a single column
941+
or reference to a column).
942+
"""
939943
if arg is None or isinstance(arg, str) or isinstance(arg, int):
940944
return False
941945
if isinstance(arg, pd.MultiIndex):
Binary file not shown.

0 commit comments

Comments
 (0)