Exemple #1
0
    'pandas.plotting.scatter_matrix')

from pandas.tools.tile import cut, qcut
from pandas.tools.util import to_numeric
from pandas.core.reshape import melt
from pandas.util.print_versions import show_versions
from pandas.io.api import *
from pandas.util._tester import test
import pandas.testing

# extension module deprecations
from pandas.util.depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json',
                         moved={
                             'dumps': 'pandas.io.json.dumps',
                             'loads': 'pandas.io.json.loads'
                         })
parser = _DeprecatedModule(deprmod='pandas.parser',
                           removals=['na_values'],
                           moved={'CParserError': 'pandas.errors.ParserError'})
lib = _DeprecatedModule(deprmod='pandas.lib',
                        deprmodto=False,
                        moved={
                            'Timestamp': 'pandas.Timestamp',
                            'Timedelta': 'pandas.Timedelta',
                            'NaT': 'pandas.NaT',
                            'infer_dtype': 'pandas.api.types.infer_dtype'
                        })
tslib = _DeprecatedModule(deprmod='pandas.tslib',
                          moved={
Exemple #2
0
from pandas.tseries.tools import to_datetime
from pandas.tseries.index import (DatetimeIndex, Timestamp, date_range,
                                  bdate_range)
from pandas.tseries.tdi import TimedeltaIndex, Timedelta
from pandas.tseries.period import Period, PeriodIndex

# see gh-14094.
from pandas.util.depr_module import _DeprecatedModule

_removals = [
    'day', 'bday', 'businessDay', 'cday', 'customBusinessDay',
    'customBusinessMonthEnd', 'customBusinessMonthBegin', 'monthEnd',
    'yearEnd', 'yearBegin', 'bmonthEnd', 'bmonthBegin', 'cbmonthEnd',
    'cbmonthBegin', 'bquarterEnd', 'quarterEnd', 'byearEnd', 'week'
]
datetools = _DeprecatedModule(deprmod='pandas.core.datetools',
                              removals=_removals)

from pandas.core.config import (get_option, set_option, reset_option,
                                describe_option, option_context, options)


# deprecation, xref #13790
def match(*args, **kwargs):
    import warnings

    warnings.warn(
        "pd.match() is deprecated and will be removed "
        "in a future version",
        FutureWarning,
        stacklevel=2)
    from pandas.core.algorithms import match
Exemple #3
0
plot_params = pandas.plotting._style._Options(deprecated=True)
# do not import deprecate to top namespace
scatter_matrix = pandas.util.decorators.deprecate(
    'pandas.scatter_matrix', pandas.plotting.scatter_matrix,
    'pandas.plotting.scatter_matrix')

from pandas.util.print_versions import show_versions
from pandas.io.api import *
from pandas.util._tester import test
import pandas.testing

# extension module deprecations
from pandas.util.depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json',
                         moved={'dumps': 'pandas.io.json.dumps',
                                'loads': 'pandas.io.json.loads'})
parser = _DeprecatedModule(deprmod='pandas.parser',
                           removals=['na_values'],
                           moved={'CParserError': 'pandas.errors.ParserError'})
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto=False,
                        moved={'Timestamp': 'pandas.Timestamp',
                               'Timedelta': 'pandas.Timedelta',
                               'NaT': 'pandas.NaT',
                               'infer_dtype': 'pandas.api.types.infer_dtype'})
tslib = _DeprecatedModule(deprmod='pandas.tslib',
                          moved={'Timestamp': 'pandas.Timestamp',
                                 'Timedelta': 'pandas.Timedelta',
                                 'NaT': 'pandas.NaT',
                                 'NaTType': 'type(pandas.NaT)',
                                 'OutOfBoundsDatetime': 'pandas.errors.OutOfBoundsDatetime'})
Exemple #4
0
from pandas.tools.concat import concat
from pandas.tools.merge import (merge, ordered_merge, merge_ordered,
                                merge_asof)
from pandas.tools.pivot import pivot_table, crosstab
from pandas.tools.plotting import scatter_matrix, plot_params
from pandas.tools.tile import cut, qcut
from pandas.tools.util import to_numeric
from pandas.core.reshape import melt
from pandas.util.print_versions import show_versions
from pandas.io.api import *
from pandas.util._tester import test

# extension module deprecations
from pandas.util.depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json',
                         deprmodto='pandas.io.json.libjson')
parser = _DeprecatedModule(deprmod='pandas.parser',
                           deprmodto='pandas.io.libparsers')
lib = _DeprecatedModule(deprmod='pandas.lib',
                        deprmodto='pandas._libs.lib',
                        moved={'infer_dtype': 'pandas.api.lib.infer_dtype'})
tslib = _DeprecatedModule(deprmod='pandas.tslib',
                          deprmodto='pandas._libs.tslib',
                          moved={
                              'Timestamp':
                              'pandas.Timestamp',
                              'Timedelta':
                              'pandas.Timedelta',
                              'NaT':
                              'pandas.NaT',
                              'OutOfBoundsDatetime':
Exemple #5
0
from pandas.tools.concat import concat
from pandas.tools.merge import (merge, ordered_merge,
                                merge_ordered, merge_asof)
from pandas.tools.pivot import pivot_table, crosstab
from pandas.tools.plotting import scatter_matrix, plot_params
from pandas.tools.tile import cut, qcut
from pandas.tools.util import to_numeric
from pandas.core.reshape import melt
from pandas.util.print_versions import show_versions
from pandas.io.api import *
from pandas.util._tester import test

# extension module deprecations
from pandas.util.depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json', deprmodto='pandas.io.json.libjson')
parser = _DeprecatedModule(deprmod='pandas.parser', deprmodto='pandas.io.libparsers')
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._libs.lib',
                        moved={'infer_dtype': 'pandas.api.lib.infer_dtype'})
tslib = _DeprecatedModule(deprmod='pandas.tslib', deprmodto='pandas._libs.tslib')

# use the closest tagged version if possible
from ._version import get_versions
v = get_versions()
__version__ = v.get('closest-tag', v['version'])
del get_versions, v

# module level doc-string
__doc__ = """
pandas - a powerful data analysis and manipulation library for Python
=====================================================================
Exemple #6
0
from pandas.core.series import Series, TimeSeries
from pandas.core.frame import DataFrame
from pandas.core.panel import Panel, WidePanel
from pandas.core.panel4d import Panel4D
from pandas.core.groupby import groupby
from pandas.core.reshape import (pivot_simple as pivot, get_dummies,
                                 lreshape, wide_to_long)

from pandas.core.indexing import IndexSlice
from pandas.tseries.offsets import DateOffset
from pandas.tseries.tools import to_datetime
from pandas.tseries.index import (DatetimeIndex, Timestamp,
                                  date_range, bdate_range)
from pandas.tseries.tdi import TimedeltaIndex, Timedelta
from pandas.tseries.period import Period, PeriodIndex

# see gh-14094.
from pandas.util.depr_module import _DeprecatedModule

_removals = ['day', 'bday', 'businessDay', 'cday', 'customBusinessDay',
             'customBusinessMonthEnd', 'customBusinessMonthBegin',
             'monthEnd', 'yearEnd', 'yearBegin', 'bmonthEnd', 'bmonthBegin',
             'cbmonthEnd', 'cbmonthBegin', 'bquarterEnd', 'quarterEnd',
             'byearEnd', 'week']
datetools = _DeprecatedModule(deprmod='pandas.core.datetools',
                              removals=_removals)

from pandas.core.config import (get_option, set_option, reset_option,
                                describe_option, option_context, options)
Exemple #7
0
from pandas.tools.concat import concat
from pandas.tools.merge import (merge, ordered_merge, merge_ordered,
                                merge_asof)
from pandas.tools.pivot import pivot_table, crosstab
from pandas.tools.plotting import scatter_matrix, plot_params
from pandas.tools.tile import cut, qcut
from pandas.tools.util import to_numeric
from pandas.core.reshape import melt
from pandas.util.print_versions import show_versions
from pandas.io.api import *
from pandas.util._tester import test

# extension module deprecations
from pandas.util.depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json',
                         deprmodto='pandas.io.json.libjson')
parser = _DeprecatedModule(deprmod='pandas.parser',
                           deprmodto='pandas.io.libparsers')
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._libs.lib')
tslib = _DeprecatedModule(deprmod='pandas.tslib',
                          deprmodto='pandas._libs.tslib')

# use the closest tagged version if possible
from ._version import get_versions
v = get_versions()
__version__ = v.get('closest-tag', v['version'])
del get_versions, v

# module level doc-string
__doc__ = """
pandas - a powerful data analysis and manipulation library for Python
Exemple #8
0
from pandas.tools.concat import concat
from pandas.tools.merge import (merge, ordered_merge,
                                merge_ordered, merge_asof)
from pandas.tools.pivot import pivot_table, crosstab
from pandas.tools.plotting import scatter_matrix, plot_params
from pandas.tools.tile import cut, qcut
from pandas.tools.util import to_numeric
from pandas.core.reshape import melt
from pandas.util.print_versions import show_versions
from pandas.io.api import *
from pandas.util._tester import test

# extension module deprecations
from pandas.util.depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json', deprmodto='pandas.io.json.libjson')
parser = _DeprecatedModule(deprmod='pandas.parser', deprmodto='pandas.io.libparsers')
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._libs.lib',
                        moved={'infer_dtype': 'pandas.api.lib.infer_dtype'})
tslib = _DeprecatedModule(deprmod='pandas.tslib', deprmodto='pandas._libs.tslib',
                          moved={'Timestamp': 'pandas.Timestamp',
                                 'Timedelta': 'pandas.Timedelta',
                                 'NaT': 'pandas.NaT',
                                 'OutOfBoundsDatetime': 'pandas.errors.OutOfBoundsDatetime'})

# use the closest tagged version if possible
from ._version import get_versions
v = get_versions()
__version__ = v.get('closest-tag', v['version'])
del get_versions, v
Exemple #9
0
from pandas.tools.concat import concat
from pandas.tools.merge import (merge, ordered_merge,
                                merge_ordered, merge_asof)
from pandas.tools.pivot import pivot_table, crosstab
from pandas.tools.plotting import scatter_matrix, plot_params
from pandas.tools.tile import cut, qcut
from pandas.tools.util import to_numeric
from pandas.core.reshape import melt
from pandas.util.print_versions import show_versions
from pandas.io.api import *
from pandas.util._tester import test

# extension module deprecations
from pandas.util.depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json', deprmodto='pandas.io.json.libjson')
parser = _DeprecatedModule(deprmod='pandas.parser', deprmodto='pandas.io.libparsers')
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._libs.lib')
tslib = _DeprecatedModule(deprmod='pandas.tslib', deprmodto='pandas._libs.tslib')

# use the closest tagged version if possible
from ._version import get_versions
v = get_versions()
__version__ = v.get('closest-tag', v['version'])
del get_versions, v

# module level doc-string
__doc__ = """
pandas - a powerful data analysis and manipulation library for Python
=====================================================================