#1852 added dataset paths to the fetchers, which means that now it is possible to write
from skrub.datasets import fetch_employee_salaries
import pandas as pd
path = fetch_employee_salaries().path
df = pd.read_csv(path)
instead of having magical access to the dataframe from the bunch object.
#1852 has updated some of the examples so that they use the path. All examples in the gallery that rely on skrub's fetchers should be updated so that they load from the path rather than using the dataset loaded in the bunch.
At some point in the future we are also going to remove loading from the fetchers entirely, so that it becomes necessary to load from the path: this is a more realistic situation anyway, and we want the examples to reflect it.
So for this issue (or through multiple issues) we want the examples in the gallery and elsewhere in the documentation to be updated so that they all load from file rather. For some examples this is quite simple to implement, some others may require more attention/rewriting.
The example changes in #1852 (like here https://github.com/skrub-data/skrub/pull/1852/changes#diff-050e3180cbff14a3de42224ccfae3ee7e9ae1a12eea4d38210e5535963e93e1c) can be used as templates
#1852 added dataset paths to the fetchers, which means that now it is possible to write
instead of having magical access to the dataframe from the bunch object.
#1852 has updated some of the examples so that they use the path. All examples in the gallery that rely on skrub's fetchers should be updated so that they load from the path rather than using the dataset loaded in the bunch.
At some point in the future we are also going to remove loading from the fetchers entirely, so that it becomes necessary to load from the path: this is a more realistic situation anyway, and we want the examples to reflect it.
So for this issue (or through multiple issues) we want the examples in the gallery and elsewhere in the documentation to be updated so that they all load from file rather. For some examples this is quite simple to implement, some others may require more attention/rewriting.
The example changes in #1852 (like here https://github.com/skrub-data/skrub/pull/1852/changes#diff-050e3180cbff14a3de42224ccfae3ee7e9ae1a12eea4d38210e5535963e93e1c) can be used as templates