OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Managing date column with different format

  • Thread starter Thread starter Bogaso
  • Start date Start date
B

Bogaso

Guest
I am trying to convert a pandas dataframe column which is in text format but represents date in mix format to a proper date format. Below is one such example,

Code:
import pandas as pd
pd.to_datetime(['0-Jan-00', '8/23/1999'])

Above code generates error.

Is there any method available to directly manage such mix of date format?
<p>I am trying to convert a <code>pandas</code> dataframe column which is in text format but represents date in mix format to a proper date format. Below is one such example,</p>
<pre><code>import pandas as pd
pd.to_datetime(['0-Jan-00', '8/23/1999'])
</code></pre>
<p>Above code generates error.</p>
<p>Is there any method available to directly manage such mix of date format?</p>
 

Latest posts

Online statistics

Members online
0
Guests online
2
Total visitors
2
Ads by Eonads
Top