Created
June 7, 2021 15:51
-
-
Save tchiavegatti/8923279bbcf0bb6aaf5fddd44f35402b to your computer and use it in GitHub Desktop.
[dtype conversion error] Find and locate invalid values #pandas #python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
df = pd.read_csv('data/data_8.csv') | |
is_error = pd.to_numeric(df['Grade'], errors='coerce').isna() | |
df[is_error] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment