32. fillna | fillna Function In Python Pandas | Handling Missing Values Using Pandas | Part 5

Published: 19 November 2020
on channel: Data Thinkers
681
15

In this video, I have covered very clearly all the parameters of fillna method.
Fillna Fills NaN values using the specified method.
------------------------------------------
DataFrame.fillna(value=None, method=None, axis=None, inplace=False, limit=None, downcast=None)
--------------------------------------------
value:
It is a value that is used to fill the null values.
scalar, dict, Series, or DataFrame.
------------------------------------------------
DataFrame.fillna(value=None, method=None, axis=None, inplace=False, limit=None, downcast=None)
----------------------------------------------
Method:

Method to use for filling holes in reindexed Series.
pad / ffill: propagate last valid observation forward to next.
(Top To Bottom)
backfill / bfill: use next valid observation to fill gap.
(Bottom To Top)
-------------------------------------------------
DataFrame.fillna(value=None, method=None, axis=None, inplace=False, limit=None, downcast=None)

axis:
axis takes int or string value for - rows: Input can be 0 or ‘index’.
Columns: Input can be 1 or
‘columns’.
------------------------------------------------
inplace: It is a boolean which makes the changes in the data frame itself if True.
-----------------------------------------------
DataFrame.fillna(value=None, method=None, axis=None, inplace=False, limit=None, downcast=None)

limit: int, default None

If the method is specified, this is the maximum number of consecutive NaN values to forward/backward fill.
Must be greater than 0 if not None.
---------------------------------------------
downcast :

It takes a dict or the string ‘infer’.
which specifies what dtype to downcast to which one. Like Float64 to int64.

Github Link: https://github.com/PRIYANG-BHATT/Data...

If you enjoy these tutorials, like the video, and give it a thumbs-up, and also share these videos with your friends and families if you think these videos would help him.
Please consider clicking the SUBSCRIBE button to be notified of future videos.

fillna python
python fillna
fillna in python
pandas fill nan
fillna in pandas
python pandas fillna
fillna function in python
fillna python pandas