PYTHON PANDAS TUTORIAL #15 - CONVERT DATAFRAME COLUMN TO A SPECIFIC DTYPE WITH astype().

preview_player
Показать описание
In this lesson we will learn how to CAST datatypes in pandas. Make sure you watch and practice my lessons at the same time.
Chapters:
3:00 - Print the basic info about data with info() method
3:25 - Use of isnull to see values replaced with a Boolean value True for NULL, and False for not-null values
3:45 - Counting how many null values are there for each column with isnull().sum() methods
4:26 - Count how many null values are inside a particular column
6:05 - Check the datatypes of all columns with dtypes attribute
6:36 - Cast dataframe column to a specific dtype in PANDAS
7:40 - Give in a parameter within the quotes to escape an error
10:54 - Replace all null values in the column to make it ready for the casting
12:40 - Use of hasnans to output True if one or more of the values in the pandas Series is NaN
13:10 - Cast dataframe column with previous NULL values to a specific dtype

#python #ai #bigdata #dataanalysis #datascience #casting #dataanalytics #pandas

Source:

Contact Me:
Рекомендации по теме