# Index of max values of N columns in a DataFrame without manually entering each column

**URL:** <https://discourse.julialang.org/t/index-of-max-values-of-n-columns-in-a-dataframe-without-manually-entering-each-column/92532>\
**Category:** New to Julia\
**Tags:** question, indexing, dataframes, maxima\
**Created:** [January 5, 2023, 12:50am UTC](https://discourse.julialang.org/t/index-of-max-values-of-n-columns-in-a-dataframe-without-manually-entering-each-column/92532 "2023-01-05T00:50:01Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Dan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dan/32/42581_2.png) [@Dan](https://discourse.julialang.org/u/Dan)\
**Post date:** [January 6, 2023, 10:03pm UTC](https://discourse.julialang.org/t/index-of-max-values-of-n-columns-in-a-dataframe-without-manually-entering-each-column/92532/15 "2023-01-06T22:03:11Z")

</div>

I’ve fixed my post above according to this (use `max.` instead of `maximum`).  
The source of the confusion, is that `maximum` can be used for row-wise maximum by adding the `dims=2` named parameter on a _matrix_ argument (at the top of my post).

---

_[View the full topic](https://discourse.julialang.org/t/index-of-max-values-of-n-columns-in-a-dataframe-without-manually-entering-each-column/92532)._
