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
- DataFrame
- Panel
- Index
- pandas.Index
- pandas.Index.T
- pandas.Index.base
- pandas.Index.data
- pandas.Index.dtype
- pandas.Index.dtype_str
- pandas.Index.flags
- pandas.Index.hasnans
- pandas.Index.inferred_type
- pandas.Index.is_monotonic
- pandas.Index.is_monotonic_decreasing
- pandas.Index.is_monotonic_increasing
- pandas.Index.is_unique
- pandas.Index.itemsize
- pandas.Index.nbytes
- pandas.Index.ndim
- pandas.Index.shape
- pandas.Index.size
- pandas.Index.strides
- pandas.Index.values
- pandas.Index.all
- pandas.Index.any
- pandas.Index.append
- pandas.Index.argmax
- pandas.Index.argmin
- pandas.Index.argsort
- pandas.Index.asof
- pandas.Index.asof_locs
- pandas.Index.astype
- pandas.Index.contains
- pandas.Index.copy
- pandas.Index.delete
- pandas.Index.difference
- pandas.Index.drop
- pandas.Index.drop_duplicates
- pandas.Index.dropna
- pandas.Index.duplicated
- pandas.Index.equals
- pandas.Index.factorize
- pandas.Index.fillna
- pandas.Index.format
- pandas.Index.get_duplicates
- pandas.Index.get_indexer
- pandas.Index.get_indexer_for
- pandas.Index.get_indexer_non_unique
- pandas.Index.get_level_values
- pandas.Index.get_loc
- pandas.Index.get_slice_bound
- pandas.Index.get_value
- pandas.Index.get_values
- pandas.Index.groupby
- pandas.Index.identical
- pandas.Index.insert
- pandas.Index.intersection
- pandas.Index.is_
- pandas.Index.is_categorical
- pandas.Index.isin
- pandas.Index.isna
- pandas.Index.isnull
- pandas.Index.item
- pandas.Index.join
- pandas.Index.map
- pandas.Index.max
- pandas.Index.memory_usage
- pandas.Index.min
- pandas.Index.notna
- pandas.Index.notnull
- pandas.Index.nunique
- pandas.Index.putmask
- pandas.Index.ravel
- pandas.Index.reindex
- pandas.Index.rename
- pandas.Index.repeat
- pandas.Index.searchsorted
- pandas.Index.set_names
- pandas.Index.set_value
- pandas.Index.shift
- pandas.Index.slice_indexer
- pandas.Index.slice_locs
- pandas.Index.sort_values
- pandas.Index.sortlevel
- pandas.Index.str
- pandas.Index.summary
- pandas.Index.symmetric_difference
- pandas.Index.take
- pandas.Index.to_frame
- pandas.Index.to_native_types
- pandas.Index.to_series
- pandas.Index.tolist
- pandas.Index.transpose
- pandas.Index.union
- pandas.Index.unique
- pandas.Index.value_counts
- pandas.Index.where
- Attributes
- Modifying and Computations
- Missing Values
- Conversion
- Sorting
- Time-specific operations
- Combining / joining / set operations
- Selecting
- pandas.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.Index.fillna¶
-
Index.
fillna
(value=None, downcast=None)[source]¶ Fill NA/NaN values with the specified value
Parameters: value : scalar
Scalar value to use to fill holes (e.g. 0). This value cannot be a list-likes.
downcast : dict, default is None
a dict of item->dtype of what to downcast if possible, or the string ‘infer’ which will try to downcast to an appropriate equal type (e.g. float64 to int64 if possible)
Returns: - filled : %(klass)s