I\'ve imported datetime in python but can\'t select a part of them with a for loop. I used pandas to import a txt file and now I would like to save part of this file in a ne