python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to drop pandas dataframe columns containing special characters
How do I drop pandas dataframe columns that contains special characters such as @ / ] [ } { - _ etc.?
For example I have the following dataframe (called df):
I need to drop the columns Name and Matc...
Giampaolo Levorato
Votes: 0
Answers: 1
How to drop records containing cell values equals to the header in pandas
I have read in this dataframe (called df):
As you can see there is a record that contains the same values as the header (ltv and age).
How do I drop that record in pandas?
Data:
df = pd.DataFrame({'l...
Giampaolo Levorato
Votes: 0
Answers: 2
How to drop entire record if more than 90% of features have missing value in pandas
I have a pandas dataframe called df with 500 columns and 2 million records.
I am able to drop columns that contain more than 90% of missing values.
But how can I drop in pandas the entire record if 90...
Giampaolo Levorato
Votes: 0
Answers: 2
Drop pandas column with constant alphanumeric values
I have a dataframe df that contains around 2 million records.
Some of the columns contain only alphanumeric values (e.g. "wer345", "gfer34", "123fdst").
Is there a python...
Giampaolo Levorato
Votes: 0
Answers: 1