# How to do feature scaling in Julia DataFrames?

**URL:** <https://discourse.julialang.org/t/how-to-do-feature-scaling-in-julia-dataframes/81348>\
**Category:** New to Julia\
**Created:** [May 20, 2022, 2:54am UTC](https://discourse.julialang.org/t/how-to-do-feature-scaling-in-julia-dataframes/81348 "2022-05-20T02:54:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DWSchulze](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dwschulze/32/35968_2.png) [@DWSchulze](https://discourse.julialang.org/u/DWSchulze)\
**Post date:** [May 20, 2022, 2:54am UTC](https://discourse.julialang.org/t/how-to-do-feature-scaling-in-julia-dataframes/81348/1 "2022-05-20T02:54:15Z")

</div>

How do I do feature scaling in Julia DataFrames? My current dataframe has one dimension that ranges from 6 to 39,000 and another that ranges from 0 to 15. I assumed that DataFrames would have the typical min-max scaling or standardization implemented, but I can’t find anything.

Python, for example, has SciKit-Learn with MinMaxScaler and StandardScaler. Does Julia DataFrames support feature scaling, or do I have to implement that myself?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [May 20, 2022, 3:24am UTC](https://discourse.julialang.org/t/how-to-do-feature-scaling-in-julia-dataframes/81348/2 "2022-05-20T03:24:32Z")

</div>

> [@DWSchulze](#):
>
> I assumed that DataFrames would have the typical min-max scaling or standardization implemented, but I can’t find anything.

no, why would that be in DataFrames.jl? Try this?  
[https://juliastats.org/StatsBase.jl/stable/transformations/#Unit-range-normalization-1](https://juliastats.org/StatsBase.jl/stable/transformations/#Unit-range-normalization-1)

---

<div class="post-metadata">

**Author:** ![math4mad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/math4mad/32/49486_2.png) [@math4mad](https://discourse.julialang.org/u/math4mad)\
**Post date:** [June 9, 2023, 7:56am UTC](https://discourse.julialang.org/t/how-to-do-feature-scaling-in-julia-dataframes/81348/3 "2023-06-09T07:56:12Z")

</div>

At now There are package [TableTransforms.jl](https://juliaml.github.io/TableTransforms.jl/stable/)  
can do the job
