# AsVector is impressive why it's not implemented yet

**URL:** <https://discourse.julialang.org/t/asvector-is-impressive-why-its-not-implemented-yet/69500>\
**Category:** Data\
**Tags:** dataframes\
**Created:** [October 10, 2021, 5:18am UTC](https://discourse.julialang.org/t/asvector-is-impressive-why-its-not-implemented-yet/69500 "2021-10-10T05:18:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xinchin](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Post date:** [October 10, 2021, 5:18am UTC](https://discourse.julialang.org/t/asvector-is-impressive-why-its-not-implemented-yet/69500/1 "2021-10-10T05:18:14Z")

</div>

I come up across this issue  
[https://github.com/JuliaData/DataFrames.jl/issues/2440](https://github.com/JuliaData/DataFrames.jl/issues/2440)

and I was amazed by the idea and the capability of Julia language. I learnt a lot from the code, but wonder why it is not implemented yet?

---

<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:** [October 10, 2021, 9:49am UTC](https://discourse.julialang.org/t/asvector-is-impressive-why-its-not-implemented-yet/69500/2 "2021-10-10T09:49:09Z")

</div>

The reason is that it would complicate the minilanguage (it is easy to keep adding things but at some point they could become so complex that newcomers would feel overwhelmed by them).

We first do [https://github.com/JuliaData/DataFrames.jl/pull/2869](https://github.com/JuliaData/DataFrames.jl/pull/2869), which implements fast reductions without having to add new semantics with the limitation that they will work only for most common cases at the benefit that they will be faster than they would be with `AsVector`. It will be released soon.  
Also the mechanics is that the user will be able to add their own fast reductions by adding methods to `table_transformation` function if needed.

Do you have a need for `AsVector` in cases of non standard reductions? (by standard I mean things like `sum`, `mean`, `min`, `max`, etc.) that could not be easily handled by adding a custom method for `table_transformation`?.

---

<div class="post-metadata">

**Author:** ![xinchin](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Post date:** [October 13, 2021, 5:14am UTC](https://discourse.julialang.org/t/asvector-is-impressive-why-its-not-implemented-yet/69500/3 "2021-10-13T05:14:22Z")

</div>

cool!  
Nothing important, for each row Iwas looking for the most frequent number.
