Facing problem with date and time formatting

I am trying different formats for the date column…its in form 20211101100000 = yyyymmddhhmmss format.can anyone help me with this?

date,bid,ask = np.loadtxt('GBPUSD.txt', unpack=True,
                              delimiter=',',
                              converters={0:mdates.datestr2num("%y%m%d%H%M%s")})

ParserError: Unknown string format: %y%m%d%H%M%s

 

Hi Abhishek, 

        Can you point me to the course and the notebook the above error belongs to? Generally, it's better to use CSV files as input data instead of a text file.