Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python: remove specific values in a dataframe
usa-girl
Programming language:
Python
2021-06-04 21:09:46
0
Q:
python: remove specific values in a dataframe
Bilkokuya
Code:
Python
2021-03-03 07:24:02
df.drop(df.index[df['myvar'] == 'specific_name'], inplace = True)
2
Frank Allen
Code:
Python
2021-03-10 22:58:59
df = df[df.line_race != 0]
1
Tags
python
value
data
remove
specific
dataframe
values
Related
python - remove repeted columns in a df
pandas dataframe remove rows by column value
delete rows with value in column pandas
pandas remove multi header from dataframe
remove 1st column pandas
delete nans in df python
how to delete na values in a dataframe
pandas drop all columns except certain ones
remove all rows without a value pandas
select specific rows from dataframe in python
remove all rows where one ccolumns egale to nan
remove row if all are the same value pandas
python extract specific columns from pandas dataframe
pandas series remove punctuation
selecting a specific value and corrersponding value in df python
python: remove duplicate in a specific column
python - subset specific columns name in a dataframe
New to Communities?
Join the community