Can someone let me know what the equivalent of the following CREATE VIEW in Databricks SQL is in PySpark?
CREATE OR REPLACE VIEW myview
as
select last_day(add_months(current_date(),-1))
Can someone let me know the equivalent of the above is in PySpark? Basically, I need to create a dataframe from the above Databricks SQL code, but it needs to written in PySpark