MCPcopy Index your code
hub / github.com/plotly/plotly.py / iris

Function iris

plotly/data/__init__.py:124–141  ·  view source on GitHub ↗

Each row represents a flower. https://en.wikipedia.org/wiki/Iris_flower_data_set Parameters ---------- return_type: {'pandas', 'polars', 'pyarrow', 'modin', 'cudf'} Type of the resulting dataframe Returns ------- Dataframe of `return_type` type Dat

(return_type="pandas")

Source from the content-addressed store, hash-verified

122
123
124def iris(return_type="pandas"):
125 """
126 Each row represents a flower.
127
128 https://en.wikipedia.org/wiki/Iris_flower_data_set
129
130 Parameters
131 ----------
132 return_type: {'pandas', 'polars', 'pyarrow', 'modin', 'cudf'}
133 Type of the resulting dataframe
134
135 Returns
136 -------
137 Dataframe of `return_type` type
138 Dataframe with 150 rows and the following columns:
139 `['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species', 'species_id']`.
140 """
141 return _get_dataset("iris", return_type=return_type)
142
143
144def wind(return_type="pandas"):

Callers

nothing calls this directly

Calls 1

_get_datasetFunction · 0.85

Tested by

no test coverage detected