# DataFrames :auto argument no longer seems to work

**URL:** https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920
**Category:** General Usage
**Tags:** dataframes
**Created:** [May 6, 2024, 5:48pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920 "2024-05-06T17:48:44Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![alan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alan/32/15970_2.png) [@alan](https://discourse.julialang.org/u/alan)
#### Post date: [May 6, 2024, 5:48pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/1 "2024-05-06T17:48:44Z")

</div>

Has :auto been removed as an argument to DataFrame? It no longer seems to work:

```julia
> DataFrame([1 2; 3 4], :auto)
ERROR: MethodError: no method matching DataFrame(::Matrix{Int64}, ::Symbol)

Closest candidates are:
  DataFrame(::AbstractMatrix, ::AbstractVector{Symbol}; makeunique)
   @ DataFrames ~/.julia/packages/DataFrames/GtZ1l/src/dataframe/dataframe.jl:267
  DataFrame(::AbstractMatrix, ::AbstractVector{<:AbstractString}; makeunique)
   @ DataFrames ~/.julia/packages/DataFrames/GtZ1l/src/dataframe/dataframe.jl:272
  DataFrame(::AbstractMatrix)
   @ DataFrames ~/.julia/packages/DataFrames/GtZ1l/src/dataframe/dataframe.jl:267
  ...

Stacktrace:
 [1] top-level scope
   @ REPL[36]:1

```

---

<div class="post-metadata">

### Author: ![RobertGregg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/robertgregg/32/22105_2.png) [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)
#### Post date: [May 6, 2024, 6:41pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/2 "2024-05-06T18:41:09Z")

</div>

Huh, weird. I’m can run this on my machine using DataFrames v1.6.1

```julia
julia> DataFrame([1 2; 3 4], :auto)
2×2 DataFrame
 Row │ x1 x2
     │ Int64 Int64
─────┼──────────────
   1 │ 1 2
   2 │ 3 4

```

What version of DataFrames do you have?

---

<div class="post-metadata">

### Author: ![alan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alan/32/15970_2.png) [@alan](https://discourse.julialang.org/u/alan)
#### Post date: [May 6, 2024, 6:54pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/3 "2024-05-06T18:54:23Z")

</div>

Perhaps that is my problem: Here’s the result of `] status DataFrames`:

Status `~/.julia/environments/v1.9/Project.toml`  
⌅ [a93c6f00] DataFrames v0.21.8

Yours is a major version ahead of mine. This is strange, because I updated the packages  
`(] up)` only yesterday. It was after that update that the problem appeared.

---

<div class="post-metadata">

### Author: ![RobertGregg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/robertgregg/32/22105_2.png) [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)
#### Post date: [May 6, 2024, 7:10pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/4 "2024-05-06T19:10:46Z")

</div>

Ah maybe there is another package that is preventing DataFrames from updating because of a conflict.

---

<div class="post-metadata">

### Author: ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)
#### Post date: [May 6, 2024, 7:11pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/5 "2024-05-06T19:11:45Z")

</div>

The arrow symbol next to DataFrames in the status output indicates that about dependency is preventing it from upgrading to a newer version.

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [May 6, 2024, 7:18pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/6 "2024-05-06T19:18:31Z")

</div>

Yes, DataFrames v0.22 is **really** old. You can see what’s holding it back with `status --outdated`. For a contrived example, you can see here that this very old version of CSV is what’s holding back DataFrames:

```julia
(@v1.10) pkg> status --outdated
Status `~/.julia/environments/v1.10/Project.toml`
⌃ [336ed68f] CSV v0.7.10 (<v0.10.14)
⌅ [a93c6f00] DataFrames v0.22.7 (<v1.6.1): CSV

```

---

<div class="post-metadata">

### Author: ![alan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alan/32/15970_2.png) [@alan](https://discourse.julialang.org/u/alan)
#### Post date: [May 9, 2024, 2:52pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/7 "2024-05-09T14:52:20Z")

</div>

It appears that I added a package that required many other packages to downgrade. There was no warning about this–at least none that I recall. Is there a setting that will cause Pkg to warn before downgrading in this fashion?

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [May 9, 2024, 3:00pm UTC](https://discourse.julialang.org/t/dataframes-auto-argument-no-longer-seems-to-work/113920/8 "2024-05-09T15:00:25Z")

</div>

There’s no specific warning but you will see downgraded packages highlighted in purple:

![image](https://global.discourse-cdn.com/julialang/original/3X/f/0/f081ef468f9c2a9735cd84d52d14bf772b589b0f.png)

see also [less subtlety when downgrading a package · Issue #1927 · JuliaLang/Pkg.jl · GitHub](https://github.com/JuliaLang/Pkg.jl/issues/1927)
