Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting AnalysisException: u'undefined function percentile;' while profiling csv dataframe #24

Open
harika1419 opened this issue May 20, 2019 · 0 comments

Comments

@harika1419
Copy link

report=spark_df_profiling_optimus.ProfileReport(spark_df)
File "/home/dmp_admin/anaconda2/lib/python2.7/site-packages/spark_df_profiling_optimus-0.1.1-py2.7.egg/spark_df_profiling_optimus/init.py", line 19, in init
description_set = describe(df, bins=bins, corr_reject=corr_reject, **kwargs)
File "/home/dmp_admin/anaconda2/lib/python2.7/site-packages/spark_df_profiling_optimus-0.1.1-py2.7.egg/spark_df_profiling_optimus/base.py", line 440, in describe
ldesc = {colum: describe_1d(df, colum, table_stats["n"]) for colum in df.columns}
File "/home/dmp_admin/anaconda2/lib/python2.7/site-packages/spark_df_profiling_optimus-0.1.1-py2.7.egg/spark_df_profiling_optimus/base.py", line 440, in
ldesc = {colum: describe_1d(df, colum, table_stats["n"]) for colum in df.columns}
File "/home/dmp_admin/anaconda2/lib/python2.7/site-packages/spark_df_profiling_optimus-0.1.1-py2.7.egg/spark_df_profiling_optimus/base.py", line 406, in describe_1d
result = result.append(describe_integer_1d(df, column, result, nrows))
File "/home/dmp_admin/anaconda2/lib/python2.7/site-packages/spark_df_profiling_optimus-0.1.1-py2.7.egg/spark_df_profiling_optimus/base.py", line 209, in describe_integer_1d
.format(col=column, n=x)).toPandas().ix[:,0]
File "/usr/hdp/2.5.0.0-1245/spark/python/lib/pyspark.zip/pyspark/sql/dataframe.py", line 876, in selectExpr
jdf = self._jdf.selectExpr(self._jseq(expr))
File "/usr/hdp/2.5.0.0-1245/spark/python/lib/py4j-0.9-src.zip/py4j/java_gateway.py", line 813, in call
answer, self.gateway_client, self.target_id, self.name)
File "/usr/hdp/2.5.0.0-1245/spark/python/lib/pyspark.zip/pyspark/sql/utils.py", line 51, in deco
raise AnalysisException(s.split(': ', 1)[1], stackTrace)
AnalysisException: u'undefined function percentile;'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant