(df)
return sys.modules[package]
Utility function to return the top level package (pandas/cudf)
     of DataFrame/Series/Index objects
Utility function to return the top level package (pandas/cudf)
     of DataFrame/Series/Index objects
Utility function to return the top level package ( pandas / cudf ) of DataFrame / Series / Index objects
def get_dataframe_package(df):
    """ Utility function to return the top level package (pandas/cudf)
     of DataFrame/Series/Index objects """
    module = inspect.getmodule(df)
    package, _, _ = module.__name__.partition('.')
    return sys.modules[package]
def get_dataframe_package ( df ) : module = inspect . getmodule ( df ) package , _ , _ = module . __name__ . partition ( '.' ) return sys . modules [ package ]