load_data

glue.core.data_factories.load_data(path, factory=None, **kwargs)

Use a factory to load a file and assign a label.

This is the preferred interface for loading data into Glue, as it logs metadata about how data objects relate to files on disk.

Parameters
pathstr

Path to the file.

factorycallable

Factory function to use. Defaults to glue.core.data_factories.auto_data() callback.

Extra keywords are passed through to factory functions.