# The naming of \`allunique\` in DataFrames.jl

**URL:** https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568
**Category:** General Usage
**Tags:** dataframes
**Created:** [February 11, 2023, 11:34pm UTC](https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568 "2023-02-11T23:34:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alfaromartino](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfaromartino/32/52986_2.png) [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)
#### Post date: [February 11, 2023, 11:34pm UTC](https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568/1 "2023-02-11T23:34:51Z")

</div>

Although it’s probably too late, a name like `uniquerows` would be more self-explanatory than `allunique`.

Thanks for your excellent work!

---

<div class="post-metadata">

### Author: ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)
#### Post date: [February 12, 2023, 7:57am UTC](https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568/2 "2023-02-12T07:57:25Z")

</div>

> [@alfaromartino](#):
>
> more self-explanatory than `allunique`.

`allunique` is the function name in Base Julia that does the job. Therefore we reuse it so that users do not need to learn a new name. If the user knows `unique` then `allunique` is natural.

This is a general rule we follow. Functions from Base Julia that operate on collections are used in DataFrames.jl to operate on rows (examples: `push!`, `unique`, `deleteat!`, …). In other words: although `DataFrame` is not iterable it is considered by these functions as a collection of rows.

---

<div class="post-metadata">

### Author: ![alfaromartino](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alfaromartino/32/52986_2.png) [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)
#### Post date: [February 12, 2023, 8:15am UTC](https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568/3 "2023-02-12T08:15:55Z")

</div>

I was confused about the function’s purpose, as I didn’t know `uniqueall` in Base. Now I just tried it and got it. Thank you!

---

<div class="post-metadata">

### Author: ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)
#### Post date: [February 12, 2023, 9:27am UTC](https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568/4 "2023-02-12T09:27:21Z")

</div>

Naming things is always one of the hardest parts of the design (and that is why such feedback and discussion is valuable to make sure we made right choices).
