I am curious if there is any difference between
df.filter(col('first_name').isin([3, 4, 7]))
and
df.filter(df.first_name.isin([3, 4, 7]))
.
CodePudding user response:
No, it's just a different syntax of referring to Column
in Python
I am curious if there is any difference between
df.filter(col('first_name').isin([3, 4, 7]))
and
df.filter(df.first_name.isin([3, 4, 7]))
.
CodePudding user response:
No, it's just a different syntax of referring to Column
in Python