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

DomainFrequencyExtractor should remove WWW prefix #456

Closed
ruebot opened this issue Apr 27, 2020 · 0 comments
Closed

DomainFrequencyExtractor should remove WWW prefix #456

ruebot opened this issue Apr 27, 2020 · 0 comments
Assignees
Labels

Comments

@ruebot
Copy link
Member

@ruebot ruebot commented Apr 27, 2020

Currently the DomainFrequencyExtractor does not remove the WWW prefix. We should include RemovePrefixWWWDF as well.

def apply(d: DataFrame): Dataset[Row] = {
val spark = SparkSession.builder().master("local").getOrCreate()
// scalastyle:off
import spark.implicits._
// scalastyle:on
d.groupBy(ExtractDomainDF($"url").as("domain"))
.count()
.sort($"count".desc)
}

@ruebot ruebot self-assigned this Apr 27, 2020
ruebot added a commit that referenced this issue Apr 27, 2020
- Resolves #456
- Update test
ianmilligan1 pushed a commit that referenced this issue Apr 27, 2020
- Resolves #456
- Update test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.