python - pandas date to string - Stack Overflow
https://stackoverflow.com/questions/3957846615.09.2016 · I think you can use strftime for convert datetime column to string column:. import pandas as pd start = pd.to_datetime('2015-02-24 10:00') rng = pd.date_range(start, periods=10) df = pd.DataFrame({'dates': rng, 'a': range(10)}) print (df) a dates 0 0 2015-02-24 10:00:00 1 1 2015-02-25 10:00:00 2 2 2015-02-26 10:00:00 3 3 2015-02-27 10:00:00 4 4 2015-02-28 …