how to change the datetime format in a column in a dataframe with python -


i have dataframe in python in there column composed date/time (dd/mm/yyyy hh.mm) , want change format dd-mm-yyyy hh:mm can't find way! have

            data    ora  valori 0     01/11/2014  03.00      38 1     01/11/2014  04.00      38 2     01/11/2014  05.00      38 3     01/11/2014  06.00      38 4     01/11/2014  07.00      38 5     01/11/2014  08.00      38 6     01/11/2014  09.00      38 7     01/11/2014  10.00      38 8     01/11/2014  11.00      38 9     01/11/2014  12.00      38 

and need:

           data    ora   valori 0    01-11-2014  03:00   81 1    01-11-2014  04:00   72 2    01-11-2014  05:00   69 3    01-11-2014  06:00   62 4    01-11-2014  07:00   62 5    01-11-2014  08:00   73 6    01-11-2014  09:00   81 7    01-11-2014  10:00  112 8    01-11-2014  11:00  124 9    01-11-2014  12:00  115 


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -