Last active
February 7, 2022 16:34
-
-
Save peacing/15aeb2c0b32425cd59994bdaf1a2a40b to your computer and use it in GitHub Desktop.
This file contains 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 pyspark.pandas as ps | |
# data path in HDFS | |
loans_filename = '/FileStore/tables/loans.csv' | |
loans_df = ps.read_csv( | |
loans_filename, | |
header=None, | |
names=['loan_amount', 'address', 'created_at', 'funded_at'], | |
infer_datetime_format=True, | |
parse_dates=['created_at', 'funded_at'] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment