# Interpolation between two dataframe columns

**URL:** <https://discourse.julialang.org/t/interpolation-between-two-dataframe-columns/127136>\
**Category:** Performance\
**Tags:** dataframes, interpolations\
**Created:** [March 19, 2025, 1:27pm UTC](https://discourse.julialang.org/t/interpolation-between-two-dataframe-columns/127136 "2025-03-19T13:27:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DanDeepPhase](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dandeepphase/32/24076_2.png) [@DanDeepPhase](https://discourse.julialang.org/u/DanDeepPhase)\
**Post date:** [March 19, 2025, 2:18pm UTC](https://discourse.julialang.org/t/interpolation-between-two-dataframe-columns/127136/2 "2025-03-19T14:18:57Z")

</div>

My recommendation would be to

1. flip your X and Y axes. DataFrame columns are parameters and rows are observations. So

```julia
df = DataFrame(:date => [2000, 2001, 2002, 2003], 
:A => [1,2,3,4],
:B => [2,3,4,5], 
...

```

1. follow this thread: [Interpolate DataFrame columns - #2 by nilshg](https://discourse.julialang.org/t/interpolate-dataframe-columns/60632/2)

---

_[View the full topic](https://discourse.julialang.org/t/interpolation-between-two-dataframe-columns/127136)._
