/pandas/core/index.py

http://github.com/pydata/pandas · Python · 30 lines · 27 code · 2 blank · 1 comment · 0 complexity · daab5ba90f179cff5ed965576209f9a4 MD5 · raw file

  1. import warnings
  2. from pandas.core.indexes.api import ( # noqa:F401
  3. CategoricalIndex,
  4. DatetimeIndex,
  5. Float64Index,
  6. Index,
  7. Int64Index,
  8. IntervalIndex,
  9. MultiIndex,
  10. NaT,
  11. NumericIndex,
  12. PeriodIndex,
  13. RangeIndex,
  14. TimedeltaIndex,
  15. UInt64Index,
  16. _new_Index,
  17. ensure_index,
  18. ensure_index_from_sequences,
  19. get_objs_combined_axis,
  20. )
  21. from pandas.core.indexes.multi import sparsify_labels # noqa:F401
  22. # GH#30193
  23. warnings.warn(
  24. "pandas.core.index is deprecated and will be removed in a future version. "
  25. "The public classes are available in the top-level namespace.",
  26. FutureWarning,
  27. stacklevel=2,
  28. )