July 2018
Intermediate to advanced
474 pages
13h 37m
English
The following section walks through the steps to explore and visualize the stock market data.
import pyspark.sql.functions as fdf = df.withColumn('date', f.to_date('Date'))
date_breakdown = ['year', 'month', 'day']for i in enumerate(date_breakdown): index = i[0] name = i[1] df = df.withColumn(name, f.split('date', '-')[index])
Read now
Unlock full access