Exemplo n.º 1
0
class _MissingPandasLikeDataFrame(object):

    # Functions
    asfreq = _unsupported_function("asfreq")
    asof = _unsupported_function("asof")
    boxplot = _unsupported_function("boxplot")
    combine = _unsupported_function("combine")
    combine_first = _unsupported_function("combine_first")
    compare = _unsupported_function("compare")
    convert_dtypes = _unsupported_function("convert_dtypes")
    corrwith = _unsupported_function("corrwith")
    cov = _unsupported_function("cov")
    ewm = _unsupported_function("ewm")
    infer_objects = _unsupported_function("infer_objects")
    interpolate = _unsupported_function("interpolate")
    lookup = _unsupported_function("lookup")
    mode = _unsupported_function("mode")
    reorder_levels = _unsupported_function("reorder_levels")
    resample = _unsupported_function("resample")
    set_axis = _unsupported_function("set_axis")
    slice_shift = _unsupported_function("slice_shift")
    to_feather = _unsupported_function("to_feather")
    to_gbq = _unsupported_function("to_gbq")
    to_hdf = _unsupported_function("to_hdf")
    to_period = _unsupported_function("to_period")
    to_sql = _unsupported_function("to_sql")
    to_stata = _unsupported_function("to_stata")
    to_timestamp = _unsupported_function("to_timestamp")
    tshift = _unsupported_function("tshift")
    tz_convert = _unsupported_function("tz_convert")
    tz_localize = _unsupported_function("tz_localize")

    # Deprecated functions
    convert_objects = _unsupported_function("convert_objects", deprecated=True)
    select = _unsupported_function("select", deprecated=True)
    to_panel = _unsupported_function("to_panel", deprecated=True)
    get_values = _unsupported_function("get_values", deprecated=True)
    compound = _unsupported_function("compound", deprecated=True)
    reindex_axis = _unsupported_function("reindex_axis", deprecated=True)

    # Functions we won't support.
    to_pickle = common.to_pickle(_unsupported_function)
    memory_usage = common.memory_usage(_unsupported_function)
    to_xarray = common.to_xarray(_unsupported_function)

    if LooseVersion(pd.__version__) < LooseVersion("1.0"):
        # Deprecated properties
        blocks = _unsupported_property("blocks", deprecated=True)
        ftypes = _unsupported_property("ftypes", deprecated=True)
        is_copy = _unsupported_property("is_copy", deprecated=True)
        ix = _unsupported_property("ix", deprecated=True)

        # Deprecated functions
        as_blocks = _unsupported_function("as_blocks", deprecated=True)
        as_matrix = _unsupported_function("as_matrix", deprecated=True)
        clip_lower = _unsupported_function("clip_lower", deprecated=True)
        clip_upper = _unsupported_function("clip_upper", deprecated=True)
        get_ftype_counts = _unsupported_function("get_ftype_counts",
                                                 deprecated=True)
        get_value = _unsupported_function("get_value", deprecated=True)
        set_value = _unsupported_function("set_value", deprecated=True)
        to_dense = _unsupported_function("to_dense", deprecated=True)
        to_sparse = _unsupported_function("to_sparse", deprecated=True)
        to_msgpack = _unsupported_function("to_msgpack", deprecated=True)
Exemplo n.º 2
0
class _MissingPandasLikeMultiIndex(object):

    # Properties
    is_all_dates = unsupported_property('is_all_dates')
    levshape = unsupported_property('levshape')

    # Deprecated properties
    strides = unsupported_property('strides', deprecated=True)
    data = unsupported_property('data', deprecated=True)
    base = unsupported_property('base', deprecated=True)
    itemsize = unsupported_property('itemsize', deprecated=True)
    labels = unsupported_property('labels', deprecated=True)
    flags = unsupported_property('flags', deprecated=True)

    # Functions
    append = unsupported_function('append')
    argmax = unsupported_function('argmax')
    argmin = unsupported_function('argmin')
    argsort = unsupported_function('argsort')
    asof = unsupported_function('asof')
    asof_locs = unsupported_function('asof_locs')
    delete = unsupported_function('delete')
    difference = unsupported_function('difference')
    drop = unsupported_function('drop')
    drop_duplicates = unsupported_function('drop_duplicates')
    droplevel = unsupported_function('droplevel')
    duplicated = unsupported_function('duplicated')
    equal_levels = unsupported_function('equal_levels')
    equals = unsupported_function('equals')
    factorize = unsupported_function('factorize')
    format = unsupported_function('format')
    get_indexer = unsupported_function('get_indexer')
    get_indexer_for = unsupported_function('get_indexer_for')
    get_indexer_non_unique = unsupported_function('get_indexer_non_unique')
    get_level_values = unsupported_function('get_level_values')
    get_loc = unsupported_function('get_loc')
    get_loc_level = unsupported_function('get_loc_level')
    get_locs = unsupported_function('get_locs')
    get_slice_bound = unsupported_function('get_slice_bound')
    get_value = unsupported_function('get_value')
    groupby = unsupported_function('groupby')
    holds_integer = unsupported_function('holds_integer')
    identical = unsupported_function('identical')
    insert = unsupported_function('insert')
    intersection = unsupported_function('intersection')
    is_ = unsupported_function('is_')
    is_lexsorted = unsupported_function('is_lexsorted')
    is_lexsorted_for_tuple = unsupported_function('is_lexsorted_for_tuple')
    is_mixed = unsupported_function('is_mixed')
    is_type_compatible = unsupported_function('is_type_compatible')
    join = unsupported_function('join')
    map = unsupported_function('map')
    max = unsupported_function('max')
    min = unsupported_function('min')
    nunique = unsupported_function('nunique')
    putmask = unsupported_function('putmask')
    ravel = unsupported_function('ravel')
    reindex = unsupported_function('reindex')
    remove_unused_levels = unsupported_function('remove_unused_levels')
    reorder_levels = unsupported_function('reorder_levels')
    repeat = unsupported_function('repeat')
    searchsorted = unsupported_function('searchsorted')
    set_codes = unsupported_function('set_codes')
    set_labels = unsupported_function('set_labels')
    set_levels = unsupported_function('set_levels')
    set_names = unsupported_function('set_names')
    set_value = unsupported_function('set_value')
    slice_indexer = unsupported_function('slice_indexer')
    slice_locs = unsupported_function('slice_locs')
    sort = unsupported_function('sort')
    sort_values = unsupported_function('sort_values')
    sortlevel = unsupported_function('sortlevel')
    swaplevel = unsupported_function('swaplevel')
    take = unsupported_function('take')
    to_flat_index = unsupported_function('to_flat_index')
    to_frame = unsupported_function('to_frame')
    to_native_types = unsupported_function('to_native_types')
    truncate = unsupported_function('truncate')
    union = unsupported_function('union')
    view = unsupported_function('view')
    where = unsupported_function('where')

    # Deprecated functions
    get_duplicates = unsupported_function('get_duplicates', deprecated=True)
    summary = unsupported_function('summary', deprecated=True)
    to_hierarchical = unsupported_function('to_hierarchical', deprecated=True)
    get_values = unsupported_function('get_values', deprecated=True)
    contains = unsupported_function('contains', deprecated=True)
    item = unsupported_function('item', deprecated=True)

    # Functions we won't support.
    values = common.values(unsupported_property)
    array = common.array(unsupported_property)
    codes = unsupported_property(
        'codes',
        reason=
        "'codes' requires to collect all data into the driver which is against the "
        "design principle of Koalas. Alternatively, you could call 'to_pandas()' and"
        " use 'codes' property in pandas.")
    levels = unsupported_property(
        'levels',
        reason=
        "'levels' requires to collect all data into the driver which is against the "
        "design principle of Koalas. Alternatively, you could call 'to_pandas()' and"
        " use 'levels' property in pandas.")
    __iter__ = common.__iter__(unsupported_function)

    # Properties we won't support.
    memory_usage = common.memory_usage(unsupported_function)
    to_list = common.to_list(unsupported_function)
    tolist = common.tolist(unsupported_function)
Exemplo n.º 3
0
class _MissingPandasLikeDataFrame(object):

    # Functions
    align = unsupported_function("align")
    asfreq = unsupported_function("asfreq")
    asof = unsupported_function("asof")
    at_time = unsupported_function("at_time")
    between_time = unsupported_function("between_time")
    boxplot = unsupported_function("boxplot")
    combine = unsupported_function("combine")
    combine_first = unsupported_function("combine_first")
    corrwith = unsupported_function("corrwith")
    cov = unsupported_function("cov")
    dot = unsupported_function("dot")
    droplevel = unsupported_function("droplevel")
    ewm = unsupported_function("ewm")
    first = unsupported_function("first")
    infer_objects = unsupported_function("infer_objects")
    insert = unsupported_function("insert")
    interpolate = unsupported_function("interpolate")
    itertuples = unsupported_function("itertuples")
    last = unsupported_function("last")
    last_valid_index = unsupported_function("last_valid_index")
    lookup = unsupported_function("lookup")
    mad = unsupported_function("mad")
    mode = unsupported_function("mode")
    prod = unsupported_function("prod")
    product = unsupported_function("product")
    reindex_like = unsupported_function("reindex_like")
    rename_axis = unsupported_function("rename_axis")
    reorder_levels = unsupported_function("reorder_levels")
    resample = unsupported_function("resample")
    sem = unsupported_function("sem")
    set_axis = unsupported_function("set_axis")
    slice_shift = unsupported_function("slice_shift")
    swapaxes = unsupported_function("swapaxes")
    swaplevel = unsupported_function("swaplevel")
    tail = unsupported_function("tail")
    to_feather = unsupported_function("to_feather")
    to_gbq = unsupported_function("to_gbq")
    to_hdf = unsupported_function("to_hdf")
    to_period = unsupported_function("to_period")
    to_sql = unsupported_function("to_sql")
    to_stata = unsupported_function("to_stata")
    to_timestamp = unsupported_function("to_timestamp")
    truncate = unsupported_function("truncate")
    tshift = unsupported_function("tshift")
    tz_convert = unsupported_function("tz_convert")
    tz_localize = unsupported_function("tz_localize")

    # Deprecated functions
    convert_objects = unsupported_function("convert_objects", deprecated=True)
    select = unsupported_function("select", deprecated=True)
    to_panel = unsupported_function("to_panel", deprecated=True)
    get_values = unsupported_function("get_values", deprecated=True)
    compound = unsupported_function("compound", deprecated=True)
    reindex_axis = unsupported_function("reindex_axis", deprecated=True)

    # Functions we won't support.
    to_pickle = common.to_pickle(unsupported_function)
    memory_usage = common.memory_usage(unsupported_function)
    to_xarray = common.to_xarray(unsupported_function)

    if LooseVersion(pd.__version__) < LooseVersion("1.0"):
        # Deprecated properties
        blocks = unsupported_property("blocks", deprecated=True)
        ftypes = unsupported_property("ftypes", deprecated=True)
        is_copy = unsupported_property("is_copy", deprecated=True)
        ix = unsupported_property("ix", deprecated=True)

        # Deprecated functions
        as_blocks = unsupported_function("as_blocks", deprecated=True)
        as_matrix = unsupported_function("as_matrix", deprecated=True)
        clip_lower = unsupported_function("clip_lower", deprecated=True)
        clip_upper = unsupported_function("clip_upper", deprecated=True)
        get_ftype_counts = unsupported_function("get_ftype_counts", deprecated=True)
        get_value = unsupported_function("get_value", deprecated=True)
        set_value = unsupported_function("set_value", deprecated=True)
        to_dense = unsupported_function("to_dense", deprecated=True)
        to_sparse = unsupported_function("to_sparse", deprecated=True)
        to_msgpack = unsupported_function("to_msgpack", deprecated=True)
Exemplo n.º 4
0
class _MissingPandasLikeSeries(object):

    # Functions
    align = unsupported_function("align")
    argsort = unsupported_function("argsort")
    asfreq = unsupported_function("asfreq")
    asof = unsupported_function("asof")
    at_time = unsupported_function("at_time")
    autocorr = unsupported_function("autocorr")
    between_time = unsupported_function("between_time")
    bfill = unsupported_function("bfill")
    combine = unsupported_function("combine")
    cov = unsupported_function("cov")
    divmod = unsupported_function("divmod")
    droplevel = unsupported_function("droplevel")
    ewm = unsupported_function("ewm")
    factorize = unsupported_function("factorize")
    ffill = unsupported_function("ffill")
    filter = unsupported_function("filter")
    first = unsupported_function("first")
    infer_objects = unsupported_function("infer_objects")
    interpolate = unsupported_function("interpolate")
    item = unsupported_function("item")
    items = unsupported_function("items")
    iteritems = unsupported_function("iteritems")
    last = unsupported_function("last")
    last_valid_index = unsupported_function("last_valid_index")
    mad = unsupported_function("mad")
    prod = unsupported_function("prod")
    product = unsupported_function("product")
    rdivmod = unsupported_function("rdivmod")
    reindex = unsupported_function("reindex")
    reindex_like = unsupported_function("reindex_like")
    rename_axis = unsupported_function("rename_axis")
    reorder_levels = unsupported_function("reorder_levels")
    resample = unsupported_function("resample")
    searchsorted = unsupported_function("searchsorted")
    sem = unsupported_function("sem")
    set_axis = unsupported_function("set_axis")
    slice_shift = unsupported_function("slice_shift")
    squeeze = unsupported_function("squeeze")
    swapaxes = unsupported_function("swapaxes")
    swaplevel = unsupported_function("swaplevel")
    tail = unsupported_function("tail")
    to_hdf = unsupported_function("to_hdf")
    to_period = unsupported_function("to_period")
    to_sql = unsupported_function("to_sql")
    to_timestamp = unsupported_function("to_timestamp")
    tshift = unsupported_function("tshift")
    tz_convert = unsupported_function("tz_convert")
    tz_localize = unsupported_function("tz_localize")
    unstack = unsupported_function("unstack")
    view = unsupported_function("view")

    # Deprecated functions
    convert_objects = unsupported_function("convert_objects", deprecated=True)
    nonzero = unsupported_function("nonzero", deprecated=True)
    reindex_axis = unsupported_function("reindex_axis", deprecated=True)
    select = unsupported_function("select", deprecated=True)
    get_values = unsupported_function("get_values", deprecated=True)

    # Properties we won't support.
    array = common.array(unsupported_property)
    duplicated = common.duplicated(unsupported_property)
    nbytes = unsupported_property(
        "nbytes",
        reason="'nbytes' requires to compute whole dataset. You can calculate manually it, "
        "with its 'itemsize', by explicitly executing its count. Use Spark's web UI "
        "to monitor disk and memory usage of your application in general.",
    )

    # Functions we won't support.
    memory_usage = common.memory_usage(unsupported_function)
    to_pickle = common.to_pickle(unsupported_function)
    to_xarray = common.to_xarray(unsupported_function)
    __iter__ = common.__iter__(unsupported_function)
    ravel = unsupported_function(
        "ravel",
        reason="If you want to collect your flattened underlying data as an NumPy array, "
        "use 'to_numpy().ravel()' instead.",
    )

    if LooseVersion(pd.__version__) < LooseVersion("1.0"):
        # Deprecated properties
        blocks = unsupported_property("blocks", deprecated=True)
        ftypes = unsupported_property("ftypes", deprecated=True)
        ftype = unsupported_property("ftype", deprecated=True)
        is_copy = unsupported_property("is_copy", deprecated=True)
        ix = unsupported_property("ix", deprecated=True)
        asobject = unsupported_property("asobject", deprecated=True)
        strides = unsupported_property("strides", deprecated=True)
        imag = unsupported_property("imag", deprecated=True)
        itemsize = unsupported_property("itemsize", deprecated=True)
        data = unsupported_property("data", deprecated=True)
        base = unsupported_property("base", deprecated=True)
        flags = unsupported_property("flags", deprecated=True)

        # Deprecated functions
        as_blocks = unsupported_function("as_blocks", deprecated=True)
        as_matrix = unsupported_function("as_matrix", deprecated=True)
        clip_lower = unsupported_function("clip_lower", deprecated=True)
        clip_upper = unsupported_function("clip_upper", deprecated=True)
        compress = unsupported_function("compress", deprecated=True)
        get_ftype_counts = unsupported_function("get_ftype_counts", deprecated=True)
        get_value = unsupported_function("get_value", deprecated=True)
        set_value = unsupported_function("set_value", deprecated=True)
        valid = unsupported_function("valid", deprecated=True)
        to_dense = unsupported_function("to_dense", deprecated=True)
        to_sparse = unsupported_function("to_sparse", deprecated=True)
        to_msgpack = unsupported_function("to_msgpack", deprecated=True)
        compound = unsupported_function("compound", deprecated=True)
        put = unsupported_function("put", deprecated=True)
        ptp = unsupported_function("ptp", deprecated=True)
        argmax = unsupported_function("argmax", deprecated=True)
        argmin = unsupported_function("argmin", deprecated=True)

        # Functions we won't support.
        real = unsupported_property(
            "real",
            reason="If you want to collect your data as an NumPy array, use 'to_numpy()' instead.",
        )
Exemplo n.º 5
0
class _MissingPandasLikeDataFrame(object):

    # Properties
    axes = unsupported_property('axes')
    iat = unsupported_property('iat')
    ndim = unsupported_property('ndim')

    # Deprecated properties
    blocks = unsupported_property('blocks', deprecated=True)
    ftypes = unsupported_property('ftypes', deprecated=True)
    is_copy = unsupported_property('is_copy', deprecated=True)
    ix = unsupported_property('ix', deprecated=True)

    # Functions
    align = unsupported_function('align')
    apply = unsupported_function('apply')
    asfreq = unsupported_function('asfreq')
    asof = unsupported_function('asof')
    at_time = unsupported_function('at_time')
    between_time = unsupported_function('between_time')
    boxplot = unsupported_function('boxplot')
    combine = unsupported_function('combine')
    combine_first = unsupported_function('combine_first')
    corrwith = unsupported_function('corrwith')
    cov = unsupported_function('cov')
    dot = unsupported_function('dot')
    droplevel = unsupported_function('droplevel')
    eval = unsupported_function('eval')
    ewm = unsupported_function('ewm')
    first = unsupported_function('first')
    first_valid_index = unsupported_function('first_valid_index')
    idxmax = unsupported_function('idxmax')
    idxmin = unsupported_function('idxmin')
    infer_objects = unsupported_function('infer_objects')
    info = unsupported_function('info')
    insert = unsupported_function('insert')
    interpolate = unsupported_function('interpolate')
    iterrows = unsupported_function('iterrows')
    itertuples = unsupported_function('itertuples')
    last = unsupported_function('last')
    last_valid_index = unsupported_function('last_valid_index')
    lookup = unsupported_function('lookup')
    mad = unsupported_function('mad')
    mask = unsupported_function('mask')
    mode = unsupported_function('mode')
    pct_change = unsupported_function('pct_change')
    prod = unsupported_function('prod')
    product = unsupported_function('product')
    quantile = unsupported_function('quantile')
    query = unsupported_function('query')
    reindex_like = unsupported_function('reindex_like')
    rename_axis = unsupported_function('rename_axis')
    reorder_levels = unsupported_function('reorder_levels')
    resample = unsupported_function('resample')
    sem = unsupported_function('sem')
    set_axis = unsupported_function('set_axis')
    slice_shift = unsupported_function('slice_shift')
    squeeze = unsupported_function('squeeze')
    stack = unsupported_function('stack')
    swapaxes = unsupported_function('swapaxes')
    swaplevel = unsupported_function('swaplevel')
    tail = unsupported_function('tail')
    take = unsupported_function('take')
    to_feather = unsupported_function('to_feather')
    to_gbq = unsupported_function('to_gbq')
    to_hdf = unsupported_function('to_hdf')
    to_period = unsupported_function('to_period')
    to_sql = unsupported_function('to_sql')
    to_stata = unsupported_function('to_stata')
    to_timestamp = unsupported_function('to_timestamp')
    truncate = unsupported_function('truncate')
    tshift = unsupported_function('tshift')
    tz_convert = unsupported_function('tz_convert')
    tz_localize = unsupported_function('tz_localize')
    unstack = unsupported_function('unstack')
    where = unsupported_function('where')

    # Deprecated functions
    as_blocks = unsupported_function('as_blocks', deprecated=True)
    as_matrix = unsupported_function('as_matrix', deprecated=True)
    clip_lower = unsupported_function('clip_lower', deprecated=True)
    clip_upper = unsupported_function('clip_upper', deprecated=True)
    convert_objects = unsupported_function('convert_objects', deprecated=True)
    get_ftype_counts = unsupported_function('get_ftype_counts', deprecated=True)
    get_value = unsupported_function('get_value', deprecated=True)
    select = unsupported_function('select', deprecated=True)
    set_value = unsupported_function('set_value', deprecated=True)
    to_panel = unsupported_function('to_panel', deprecated=True)
    get_values = unsupported_function('get_values', deprecated=True)
    to_dense = unsupported_function('to_dense', deprecated=True)
    to_sparse = unsupported_function('to_sparse', deprecated=True)
    to_msgpack = unsupported_function('to_msgpack', deprecated=True)
    compound = unsupported_function('compound', deprecated=True)
    reindex_axis = unsupported_function('reindex_axis', deprecated=True)

    # Properties we won't support.
    values = common.values(unsupported_property)

    # Functions we won't support.
    to_pickle = common.to_pickle(unsupported_function)
    memory_usage = common.memory_usage(unsupported_function)
    to_xarray = common.to_xarray(unsupported_function)
Exemplo n.º 6
0
class _MissingPandasLikeSeries(object):

    # Properties
    axes = unsupported_property('axes')
    iat = unsupported_property('iat')

    # Deprecated properties
    blocks = unsupported_property('blocks', deprecated=True)
    ftypes = unsupported_property('ftypes', deprecated=True)
    ftype = unsupported_property('ftype', deprecated=True)
    is_copy = unsupported_property('is_copy', deprecated=True)
    ix = unsupported_property('ix', deprecated=True)
    asobject = unsupported_property('asobject', deprecated=True)
    strides = unsupported_property('strides', deprecated=True)
    imag = unsupported_property('imag', deprecated=True)
    itemsize = unsupported_property('itemsize', deprecated=True)
    data = unsupported_property('data', deprecated=True)
    base = unsupported_property('base', deprecated=True)
    flags = unsupported_property('flags', deprecated=True)

    # Functions
    align = unsupported_function('align')
    argsort = unsupported_function('argsort')
    asfreq = unsupported_function('asfreq')
    asof = unsupported_function('asof')
    at_time = unsupported_function('at_time')
    autocorr = unsupported_function('autocorr')
    between_time = unsupported_function('between_time')
    bfill = unsupported_function('bfill')
    combine = unsupported_function('combine')
    combine_first = unsupported_function('combine_first')
    cov = unsupported_function('cov')
    divmod = unsupported_function('divmod')
    dot = unsupported_function('dot')
    droplevel = unsupported_function('droplevel')
    duplicated = unsupported_function('duplicated')
    ewm = unsupported_function('ewm')
    factorize = unsupported_function('factorize')
    ffill = unsupported_function('ffill')
    filter = unsupported_function('filter')
    first = unsupported_function('first')
    get = unsupported_function('get')
    infer_objects = unsupported_function('infer_objects')
    interpolate = unsupported_function('interpolate')
    items = unsupported_function('items')
    iteritems = unsupported_function('iteritems')
    last = unsupported_function('last')
    last_valid_index = unsupported_function('last_valid_index')
    mad = unsupported_function('mad')
    mask = unsupported_function('mask')
    pct_change = unsupported_function('pct_change')
    pop = unsupported_function('pop')
    prod = unsupported_function('prod')
    product = unsupported_function('product')
    ravel = unsupported_function('ravel')
    rdivmod = unsupported_function('rdivmod')
    reindex = unsupported_function('reindex')
    reindex_like = unsupported_function('reindex_like')
    rename_axis = unsupported_function('rename_axis')
    reorder_levels = unsupported_function('reorder_levels')
    repeat = unsupported_function('repeat')
    resample = unsupported_function('resample')
    searchsorted = unsupported_function('searchsorted')
    sem = unsupported_function('sem')
    set_axis = unsupported_function('set_axis')
    slice_shift = unsupported_function('slice_shift')
    squeeze = unsupported_function('squeeze')
    swapaxes = unsupported_function('swapaxes')
    swaplevel = unsupported_function('swaplevel')
    tail = unsupported_function('tail')
    take = unsupported_function('take')
    to_hdf = unsupported_function('to_hdf')
    to_period = unsupported_function('to_period')
    to_sql = unsupported_function('to_sql')
    to_timestamp = unsupported_function('to_timestamp')
    tshift = unsupported_function('tshift')
    tz_convert = unsupported_function('tz_convert')
    tz_localize = unsupported_function('tz_localize')
    unstack = unsupported_function('unstack')
    update = unsupported_function('update')
    view = unsupported_function('view')

    # Deprecated functions
    as_blocks = unsupported_function('as_blocks', deprecated=True)
    as_matrix = unsupported_function('as_matrix', deprecated=True)
    clip_lower = unsupported_function('clip_lower', deprecated=True)
    clip_upper = unsupported_function('clip_upper', deprecated=True)
    compress = unsupported_function('compress', deprecated=True)
    convert_objects = unsupported_function('convert_objects', deprecated=True)
    get_ftype_counts = unsupported_function('get_ftype_counts',
                                            deprecated=True)
    get_value = unsupported_function('get_value', deprecated=True)
    nonzero = unsupported_function('nonzero', deprecated=True)
    reindex_axis = unsupported_function('reindex_axis', deprecated=True)
    select = unsupported_function('select', deprecated=True)
    set_value = unsupported_function('set_value', deprecated=True)
    valid = unsupported_function('valid', deprecated=True)
    get_values = unsupported_function('get_values', deprecated=True)
    to_dense = unsupported_function('to_dense', deprecated=True)
    to_sparse = unsupported_function('to_sparse', deprecated=True)
    to_msgpack = unsupported_function('to_msgpack', deprecated=True)
    compound = unsupported_function('compound', deprecated=True)
    put = unsupported_function('put', deprecated=True)
    item = unsupported_function('item', deprecated=True)
    ptp = unsupported_function('ptp', deprecated=True)
    argmax = unsupported_function('argmax', deprecated=True)
    argmin = unsupported_function('argmin', deprecated=True)

    # Properties we won't support.
    values = common.values(unsupported_property)
    array = common.array(unsupported_property)
    real = unsupported_property(
        'real',
        reason=
        "If you want to collect your data as an NumPy array, use 'to_numpy()' instead."
    )
    nbytes = unsupported_property(
        'nbytes',
        reason=
        "'nbytes' requires to compute whole dataset. You can calculate manually it, "
        "with its 'itemsize', by explicitly executing its count. Use Spark's web UI "
        "to monitor disk and memory usage of your application in general.")

    # Functions we won't support.
    memory_usage = common.memory_usage(unsupported_function)
    to_pickle = common.to_pickle(unsupported_function)
    to_xarray = common.to_xarray(unsupported_function)
    __iter__ = common.__iter__(unsupported_function)
Exemplo n.º 7
0
class _MissingPandasLikeSeries(object):

    # Functions
    align = unsupported_function("align")
    argsort = unsupported_function("argsort")
    asfreq = unsupported_function("asfreq")
    asof = unsupported_function("asof")
    at_time = unsupported_function("at_time")
    autocorr = unsupported_function("autocorr")
    between_time = unsupported_function("between_time")
    bfill = unsupported_function("bfill")
    combine = unsupported_function("combine")
    combine_first = unsupported_function("combine_first")
    cov = unsupported_function("cov")
    divmod = unsupported_function("divmod")
    dot = unsupported_function("dot")
    droplevel = unsupported_function("droplevel")
    ewm = unsupported_function("ewm")
    factorize = unsupported_function("factorize")
    ffill = unsupported_function("ffill")
    filter = unsupported_function("filter")
    first = unsupported_function("first")
    infer_objects = unsupported_function("infer_objects")
    interpolate = unsupported_function("interpolate")
    item = unsupported_function("item")
    items = unsupported_function("items")
    iteritems = unsupported_function("iteritems")
    last = unsupported_function("last")
    last_valid_index = unsupported_function("last_valid_index")
    mad = unsupported_function("mad")
    prod = unsupported_function("prod")
    product = unsupported_function("product")
    rdivmod = unsupported_function("rdivmod")
    reindex = unsupported_function("reindex")
    reindex_like = unsupported_function("reindex_like")
    rename_axis = unsupported_function("rename_axis")
    reorder_levels = unsupported_function("reorder_levels")
    repeat = unsupported_function("repeat")
    resample = unsupported_function("resample")
    searchsorted = unsupported_function("searchsorted")
    sem = unsupported_function("sem")
    set_axis = unsupported_function("set_axis")
    slice_shift = unsupported_function("slice_shift")
    squeeze = unsupported_function("squeeze")
    swapaxes = unsupported_function("swapaxes")
    swaplevel = unsupported_function("swaplevel")
    tail = unsupported_function("tail")
    take = unsupported_function("take")
    to_hdf = unsupported_function("to_hdf")
    to_period = unsupported_function("to_period")
    to_sql = unsupported_function("to_sql")
    to_timestamp = unsupported_function("to_timestamp")
    tshift = unsupported_function("tshift")
    tz_convert = unsupported_function("tz_convert")
    tz_localize = unsupported_function("tz_localize")
    unstack = unsupported_function("unstack")
    view = unsupported_function("view")

    # Deprecated functions
    convert_objects = unsupported_function("convert_objects", deprecated=True)
    nonzero = unsupported_function("nonzero", deprecated=True)
    reindex_axis = unsupported_function("reindex_axis", deprecated=True)
    select = unsupported_function("select", deprecated=True)
    get_values = unsupported_function("get_values", deprecated=True)

    # Properties we won't support.
    values = common.values(unsupported_property)
    array = common.array(unsupported_property)
    duplicated = common.duplicated(unsupported_property)
    nbytes = unsupported_property(
        "nbytes",
        reason="'nbytes' requires to compute whole dataset. You can calculate manually it, "
        "with its 'itemsize', by explicitly executing its count. Use Spark's web UI "
        "to monitor disk and memory usage of your application in general.",
    )

    # Functions we won't support.
    memory_usage = common.memory_usage(unsupported_function)
    to_pickle = common.to_pickle(unsupported_function)
    to_xarray = common.to_xarray(unsupported_function)
    __iter__ = common.__iter__(unsupported_function)
    ravel = unsupported_function(
        "ravel",
        reason="If you want to collect your flattened underlying data as an NumPy array, "
        "use 'to_numpy().ravel()' instead.",
    )