Table Of Contents
- What’s New
- Installation
- Contributing to pandas
- Package overview
- 10 Minutes to pandas
- Tutorials
- Cookbook
- Intro to Data Structures
- Essential Basic Functionality
- Working with Text Data
- Options and Settings
- Indexing and Selecting Data
- MultiIndex / Advanced Indexing
- Computational tools
- Working with missing data
- Group By: split-apply-combine
- Merge, join, and concatenate
- Reshaping and Pivot Tables
- Time Series / Date functionality
- Time Deltas
- Categorical Data
- Visualization
- Styling
- IO Tools (Text, CSV, HDF5, …)
- Enhancing Performance
- Sparse data structures
- Frequently Asked Questions (FAQ)
- rpy2 / R interface
- pandas Ecosystem
- Comparison with R / R libraries
- Comparison with SQL
- Comparison with SAS
- Comparison with Stata
- API Reference
- Input/Output
- General functions
- Series
- Constructor
- Attributes
- Conversion
- Indexing, iteration
- Binary operator functions
- Function application, GroupBy & Window
- Computations / Descriptive Stats
- Reindexing / Selection / Label manipulation
- Missing data handling
- Reshaping, sorting
- Combining / joining / merging
- Time series-related
- Datetimelike Properties
- String handling
- Categorical
- pandas.api.types.CategoricalDtype
- pandas.api.types.CategoricalDtype.categories
- pandas.api.types.CategoricalDtype.ordered
- pandas.Categorical
- pandas.Categorical.from_codes
- pandas.Categorical.dtype
- pandas.Categorical.categories
- pandas.Categorical.ordered
- pandas.Categorical.codes
- pandas.Categorical.__array__
- pandas.Series.cat.categories
- pandas.Series.cat.ordered
- pandas.Series.cat.codes
- pandas.Series.cat.rename_categories
- pandas.Series.cat.reorder_categories
- pandas.Series.cat.add_categories
- pandas.Series.cat.remove_categories
- pandas.Series.cat.remove_unused_categories
- pandas.Series.cat.set_categories
- pandas.Series.cat.as_ordered
- pandas.Series.cat.as_unordered
- Plotting
- Serialization / IO / Conversion
- Sparse
- DataFrame
- Panel
- Index
- Numeric Index
- CategoricalIndex
- IntervalIndex
- MultiIndex
- DatetimeIndex
- TimedeltaIndex
- PeriodIndex
- Scalars
- Frequencies
- Window
- GroupBy
- Resampling
- Style
- Plotting
- General utility functions
- Extensions
- Developer
- Internals
- Extending Pandas
- Release Notes
Search
Enter search terms or a module, class or function name.
pandas.Categorical.codes¶
-
Categorical.
codes
¶ The category codes of this categorical.
Level codes are an array if integer which are the positions of the real values in the categories array.
There is not setter, use the other categorical methods and the normal item setter to change values in the categorical.