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

Veröffentlicht am: 29 Mai 2023
auf dem Kanal: Data From Zero To Hero
249
7

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


Auf dieser Seite können Sie das Online-Video PYTHON PANDAS TUTORIAL #15 - CONVERT DATAFRAME COLUMN TO A SPECIFIC DTYPE WITH astype(). mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Data From Zero To Hero 29 Mai 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 249 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!