(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False)
return impl
Implementation of constructor for pandas Series via objmode.
Implementation of constructor for pandas Series via objmode.
Implementation of constructor for pandas Series via objmode .
def _Series_category(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False):
    """
    Implementation of constructor for pandas Series via objmode.
    """
    # TODO: support other parameters (only data and dtype now)

    ty = typeof(_reconstruct_Series(data, dtype))

    from textwrap import dedent
    text = dedent(f"""
    def impl(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False):
        with objmode(series="{ty}"):
            series = pd.Series(data, index, dtype, name, copy, fastpath)
        return series
    """)
    globals, locals = {'objmode': objmode, 'pd': pd}, {}
    exec(text, globals, locals)
    impl = locals['impl']
    return impl
def _Series_category ( data = None , index = None , dtype = None , name = None , copy = False , fastpath = False ) : # TODO: support other parameters (only data and dtype now) ty = typeof ( _reconstruct_Series ( data , dtype ) ) from textwrap import dedent text = dedent ( f"""
    def impl(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False):
        with objmode(series="{ty}"):
            series = pd.Series(data, index, dtype, name, copy, fastpath)
        return series
    """ ) globals , locals = { 'objmode' : objmode , 'pd' : pd } , { } exec ( text , globals , locals ) impl = locals [ 'impl' ] return impl