Home > Software engineering >  Difference between col("col_name") and df.col_name?
Difference between col("col_name") and df.col_name?

Time:11-03

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

  • Related