- class LazyModule(module, variable, namespace=None, overwrite=True)[source]#
Create a “lazy” module that is loaded if and only if an attribute is called.
Typically not for use by the user, but is used by
pd = sc.LazyModule('pandas', 'pd') # pd is a LazyModule, not actually pandas df = pd.DataFrame() # Not only does this work, but pd is now actually pandas
New in version 2.0.0.