PySpark DataFrame | alias method
Start your free 7-days trial now!
alias(~) method gives an alias to the DataFrame that you can then refer to in string statements.
This method does not take any parameters.
A PySpark DataFrame.
Consider the following PySpark DataFrame:
Giving an alias to a PySpark DataFrame
Let's give an alias to our DataFrame, and then refer to the DataFrame using the alias: