Drop dataframe columns based on if condition in pandas

Viewed 4438

I have the following dataframe

 2001-01-01   2001-01-02            2001-01-03 
   1               0                   8 

I want to drop every column, which is smaller than 2001-01-02, i.e. my df should look like this:

  2001-01-02            2001-01-03
          0                   8 

Does anybody know how to do it?

2 Answers
Related