Skip to content

Instantly share code, notes, and snippets.

View afumagallireply's full-sized avatar

afumagallireply

View GitHub Profile
---------------------------------------------------------------------------
Py4JJavaError Traceback (most recent call last)
<command-361418500356831> in <module>()
6 return df[df['first']=="9"]
7
----> 8 return_df = df.groupby("second").apply(filter_pandas).count()
9 print(return_df)
/databricks/spark/python/pyspark/sql/dataframe.py in count(self)
455 2