Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I modify the year column in my dataset using PySpark or Python, so that if the year is 2022, it becomes 2022-23, and if the year is 2021, it becomes 2021-2022?