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

add DataFrame.frequencies/2 #637

Merged
merged 2 commits into from
Jul 2, 2023

Conversation

anthony-khong
Copy link
Contributor

Closes #635

|> arrange_with(&[desc: &1[:counts]])
end

def frequencies(_df, []), do: raise(ArgumentError, "columns cannot be empty.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def frequencies(_df, []), do: raise(ArgumentError, "columns cannot be empty.")
def frequencies(_df, []), do: raise(ArgumentError, "columns cannot be empty")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't finish error messages with dots. :)

@anthony-khong
Copy link
Contributor Author

Thanks José, dot removed! 😆

@josevalim josevalim merged commit 3f66bd2 into elixir-explorer:main Jul 2, 2023
3 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

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

Successfully merging this pull request may close these issues.

add DataFrame.frequencies/2
2 participants