I am trying to extract a date portion from datetime via mutating into a substring and resulting dataframe still prints whole datetime field:
df >>= mask(X["Item Type"] != 'Application') >> mutate(transaction_date = X["Transaction Time"][0:10])
Resulting df.transaction_date prints full string, ex: 2019-02-10 19:21:45 PST
I am trying to extract a date portion from datetime via mutating into a substring and resulting dataframe still prints whole datetime field:
df >>= mask(X["Item Type"] != 'Application') >> mutate(transaction_date = X["Transaction Time"][0:10])
Resulting df.transaction_date prints full string, ex: 2019-02-10 19:21:45 PST