Hi,
I have a question about Dict().

I found there are no method such as sort_by() after v0.3.
But I want to count word frequency with Dict() and sort by its value to 
find frequent word.
So, how can I sort Dict efficiently?

Of course, I know sort using DataFrame like following,

```
counts = Dict{String, Int64}("apple" => 100, "town" => 250, "space" => 24)
df = DataFrame(word = collect(keys(counts)), count = 
collect(values(counts)))
sort(df, cols = [:count], rev = true)
```

I think it is natural `convert(DataFrame, dict)` returns Nx2 DataFrame 
instead of 1xN one.

Thanks,

---
Michiaki Ariga
https://github.com/chezou

Reply via email to