load_dataset
looks for online csv files on https://github.com/mwaskom/seaborn-data. Here’s the docstring:
Load a dataset from the online repository (requires internet).
Parameters
name : str
Name of the dataset (name
.csv on
https://github.com/mwaskom/seaborn-data). You can obtain list of
available datasets using :func:get_dataset_names
kws : dict, optional
Passed to pandas.read_csv
If you want to modify that online dataset or bring in your own data, you likely have to use pandas. load_dataset
actually returns a pandas DataFrame
object, which you can confirm with type(tips)
.
If you already created your own data in a csv file called, say, tips2.csv, and saved it in the same location as your script, use this (after installing pandas) to load it in:
import pandas as pd
tips2 = pd.read_csv('tips2.csv')