How can we convert 01-01-2011 19:00 to weekdays like Mon ,Tue .. in python?
Question: I was working on a pandas dataframe where I had a column of datetime now I
haveto convert it into Weekdays.How can I do this?


Answer: There is a datetime module you may want to use.

[strptime and
strftime](http://www.tutorialspoint.com/python/time_strftime.htm) methods from
[datetime](https://docs.python.org/2/library/datetime.html) module:

    
    
    In [1]: import datetime
    In [4]: datetime.datetime.strptime('01-01-2011 19:00','%d-%m-%Y %H:%M').strftime('%A')
    Out[4]: 'Saturday'
    

