Built-in datasets
plotjs
has a few datasets that you can load easily:
- iris
- mtcars
- titanic
plotjs.data.load_iris(output_format='pandas')
Load the iris dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output_format
|
str
|
The output format of the dataframe. Note that, for example,
if you set |
'pandas'
|
Returns:
Type | Description |
---|---|
Frame
|
The iris dataset. |
Examples:
plotjs.data.load_mtcars(output_format='pandas')
Load the mtcars dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output_format
|
str
|
The output format of the dataframe. Note that, for example,
if you set |
'pandas'
|
Returns:
Type | Description |
---|---|
Frame
|
The mtcars dataset. |
Examples:
plotjs.data.load_titanic(output_format='pandas')
Load the titanic dataset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output_format
|
str
|
The output format of the dataframe. Note that, for example,
if you set |
'pandas'
|
Returns:
Type | Description |
---|---|
Frame
|
The titanic dataset. |
Examples: