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

showing Incorrect Missing data in HTML Report #25

Open
harika1419 opened this issue Jun 6, 2019 · 6 comments
Open

showing Incorrect Missing data in HTML Report #25

harika1419 opened this issue Jun 6, 2019 · 6 comments

Comments

@harika1419
Copy link

After generating the HTML report using spark-df- profiling It is showing the percentage of Missing data as 0%.

Even though dataframe has some missing data

@adutchengineer
Copy link

Could you give an example?

@shhanani
Copy link

shhanani commented Jan 7, 2020

Is this fixed yet? mine also shows wrong missing data as 0%

@shhanani
Copy link

shhanani commented Jan 8, 2020

@harika1419 I think I found the issue. It's in line 397.
Change to this:

results_data = df.select(column).na.drop().agg(countDistinct(col(column)).alias("distinct_count"),
                                                       count(col(column)).alias("count")).toPandas()

@julioasotodv you might need to look at this solution

@harika1419
Copy link
Author

Hi...
That issue was fixed after upgrading the spark from 1.6 to 2.3.3

@shhanani
Copy link

shhanani commented Jan 8, 2020

Hi @harika1419,
Thanks for informing. I'm facing this issue while using spark 2.4.2, that is why I thought its not fixed yet.

@Strauman
Copy link

Strauman commented Jun 7, 2021

I'm on Spark 3.1.0, and it's showing wrong. Also the number of zeros are wrong.

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

4 participants