Categories Python Answers How to drop rows of a Python Pandas DataFrame whose value in a certain column is NaN? Post author By John Au-Yeung Post date March 24, 2022 No Comments on How to drop rows of a Python Pandas DataFrame whose value in a certain column is NaN? Spread the love To drop rows of a Python Pandas DataFrame whose value in a certain column is NaN, we call the notna method. For instance, we write df = df[df['EPS'].notna()] to drop the rows where the 'EPS' column isn’t NaN by calling notna on the column. Related Posts How to select rows from a DataFrame based on column values with Python Pandas?To select rows from a DataFrame based on column values with Python Pandas, we can… How to delete a column from a Python Pandas DataFrame?To delete a column from a Python Pandas DataFrame, we call the drop method. For… How to get a list from Python Pandas DataFrame column headers?To get a list from Python Pandas DataFrame column headers, we call list on the… By John Au-Yeung Web developer specializing in React, Vue, and front end development. View Archive → ← How to add a new column to an existing Python Pandas DataFrame? → How to use a list of values to select rows from a Python Pandas dataframe? Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Current ye@r * Leave this field empty