-1

I found a similar thread but it dosent seem to work for me

Removing the timestamp from a datetime in pandas dataframe

say, My dataframe is of the following format:

dataframe description

i tried doing this wile saving the csv but it didnt work:

df3.to_csv('xy.csv',date_format = '%Y%m%d')

I also tried;

df3.datetime.strptime(df3, '%Y-%m-%d').date()

but it gives the

AttributeError: 'DataFrame' object has no attribute 'datetime'

I want to remove the timestamp throughout the dataframe, how do i go about doing this.thank you :)

Devarshi Goswami
  • 1,035
  • 4
  • 11
  • 26

1 Answers1

1

I tried with an example on my own with the help from https://stackoverflow.com/a/47752555/8660907

enter image description here

  • 1
    Otherwise, post more of your code for us to see the gist of what you have done and is now trying to achieve? –  Jan 22 '20 at 05:48