Data Loader¶
To test Shapash library, it provides a data_loader function which returns clearly labeled datasets. These datasets allow any new user to easily test the shapash library on a classification or regression problem
Data loader module
- shapash.data.data_loader.data_loading(dataset)[source]¶
data_loading allows shapash user to try the library with small but clear datasets. Titanic, house_prices or telco_customer_churn data.
Example
>>> from shapash.data.data_loader import data_loading >>> house_df, house_dict = data_loading('house_prices')
- Parameters
dataset (String) –
- Dataset’s name to return.
’titanic’
’house_prices’
’telco_customer_churn’
- Returns
data (pandas.DataFrame) – Dataset required
dict ((Dictionnary, Optional)) – If exist, columns labels dictionnary associated to the dataset.