-2

I have this dataframe

index hour minute second year month day
0 0 0 0 2022 2 1
1 0 1 0 2022 2 1
2 0 2 0 ... ... ...
3 0 3 0 ... ... ...
4 0 4 0 ... ... ...
5 0 5 0 ... ... ...
6 0 6 0 ... ... ...
7 0 7 0 ... ... ...
8 0 8 0 ... ... ...

this table contains 100.000 rows

How can I create a new column that is having the full datetime using the columns that I wrote. What I mean is that I want a new column with the formation year-month-day hour-minutes-seconds

Joshua
  • 144
  • 7
span_path
  • 49
  • 5
  • 1
    Question titles in all-captitals are much harder to read, and some may find them affronting. Please avoid doing that if you want the best chance of being heard. In general, follow basic grammatical rules for English, including appropriate capitalization and punctuation. This constitutes the sort of minimum standard when seeking help via written mediums. – paddy Dec 19 '22 at 00:06

1 Answers1

-1

You can use to_datetime.

See this answer

Mit
  • 679
  • 6
  • 17