, import_modules=None)[source]

Load data from file.

Different formats are supported.


filename : str

Name of the file to load data from.

import_modules : str or list

List of modules that may be required by the data that need to be imported.


dict or list :

The loaded data. If any errors occur, None is returned.