Created
December 1, 2019 21:35
-
-
Save cordon-thiago/bf59bc651cc4bae0be97e7f830111ace to your computer and use it in GitHub Desktop.
Datatype Conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
hardbounce_2['flgHardBounce_n'] = hardbounce_2.flgHardBounce.astype(int) | |
hardbounce_2['regDate_n'] = pd.to_datetime(hardbounce_2['regDate']) | |
hardbounce_2['birthDate_n'] = pd.to_datetime(hardbounce_2['birthDate'], errors = 'coerce') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment