Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove hh:mm:ss from pandas dataframe column

import pandas as pd
from datetime import date

dfST['timestamp'] = pd.to_datetime(dfST['timestamp'])
dfST['new_date_column'] = dfST['timestamp'].dt.date
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #pandas #dataframe #column
ADD COMMENT
Topic
Name
8+8 =