JSVJ
JSVJ

Reputation: 503

Automatically detect and drop unwanted features

I am new to Data Analysis in Pandas. Is there any possibility to automatically detect all the unwanted features like ID, Name, Address (assume its not required), DateTime (assume its not required) in Pandas ?

Here I am trying to do classification, unsupervised learning (without target feature) but I dont need ID, Name, Address etc.

I used df.info() and removing all the features that has dtype of 'object' but I am missing some other important categorical features too.

If there is a possibility, could anyone help me with explanation ?

Upvotes: 0

Views: 868

Answers (1)

zhavorsa
zhavorsa

Reputation: 394

I don't think it is possible to do that with python pandas. You can manually delete the unwanted columns with pandas' drop() function.

For example:

df.drop(['col1', 'col2'], axis=1)

Upvotes: 2

Related Questions