Date Range - PySpark and Pandas API

PHOTO EMBED

Tue Oct 04 2022 13:28:17 GMT+0000 (Coordinated Universal Time)

Saved by @thiago3442 #pyspark #python #panda

>>> ps.date_range(start='1/1/2018', periods=5, freq='M')  
DatetimeIndex(['2018-01-31', '2018-02-28', '2018-03-31', '2018-04-30',
               '2018-05-31'],
              dtype='datetime64[ns]', freq=None)
content_copyCOPY

Generate Date_Range for PySpark using Pandas API lib

https://spark.apache.org/docs/latest/api/python/reference/pyspark.pandas/api/pyspark.pandas.date_range.html