1

I am importing csv file where date-corresponding column uses yyyymm format

enter image description here

first column represent the yearmonth how can I convert it to the datetime object?

Beliy718
  • 11
  • 1
  • [`to_datetime`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.to_datetime.html#pandas.to_datetime) takes a `format` argument, set it to [`"%Y%m"`](http://strftime.org/). Don't post data in images, please type it out in a reusable format. – Dan Oct 29 '19 at 17:04
  • Thank you - much appreciated. – Beliy718 Oct 29 '19 at 17:09

0 Answers0