Python Basics Tutorial Pandas DataFrame Mean Method with Fillna Method

Опубликовано: 29 Январь 2020
на канале: Python Basics
810
10

Learn how to use pandas dataframe mean to fill missing data with fillna for python programming

df = pd.DataFrame([[1, 2, 3, 0],
[3, 4, 6, 1],
[2, 1, 2, 5],
[1, 3, 5, 4]],
columns=list('ABCD'))

df = pd.DataFrame([[np.nan, 2, np.nan, 0],
[3, 4, np.nan, 1],
[np.nan, np.nan, 2, 5],
[1, 3, np.nan, 4]],
columns=list('ABCD'))

https://github.com/Python-basics/Tuto...

twitter: @python_basics

#pythonprogramming #pythonbasics #pythonforever