<jupyter_start><jupyter_text>Getting Financial Data  Introduction:This time you will get data from a website. Step 1. Import the necessary libraries<jupyter_code>import pyspark
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName('finance').getOrCreate()
spark<jupyter_output><empty_output><jupyter_text>Step 2. Create your time range (start and end variables). The start date should be 01/01/2015 and the end should today (whatever your today is).<jupyter_code>from pyspark.sql.functions import sequence, to_date, explode, col,current_date
start = '01-01-2015'
print(start)

end = current_date
print(end)<jupyter_output>01-01-2015
<function current_date at 0x1261d7670>
{'fraction_non_alphanumeric': 0.085383502170767, 'fraction_numerical': 0.05065123010130246, 'mean_word_length': 6.863636363636363, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '596049', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 248, 'n_tokens_neox': 217, 'n_words': 66, 'path': '09_Time_Series/Getting_Financial_Data/PySparkSolution.ipynb', 'repo_name': 'dhruv-agg/pyspark_practice', 'size': '691'}