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:
https://github.com/Rruhid/data
Contact Me:
Linkedin: / ruhid-shihkerimov
Gmail: roma.sixkerimov@gmail.com
On this page of the site you can watch the video online PYTHON PANDAS TUTORIAL #15 - CONVERT DATAFRAME COLUMN TO A SPECIFIC DTYPE WITH astype(). with a duration of hours minute second in good quality, which was uploaded by the user Data From Zero To Hero 29 May 2023, share the link with friends and acquaintances, this video has already been watched 249 times on youtube and it was liked by 7 viewers. Enjoy your viewing!