# \#dataframes

**URL:** https://discourse.julialang.org/tag/dataframes/192.md?match_all_tags=true&page=2&tags%5B%5D=dataframes

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 3

---

## [Compare dataframes regardless of column order](https://discourse.julialang.org/t/compare-dataframes-regardless-of-column-order/125491)

<div class="topic-metadata">

**Author:** [@fran94](https://discourse.julialang.org/u/fran94)\
**Replies:** 8\
**Last updated:** [February 4, 2025, 2:42pm UTC](https://discourse.julialang.org/t/compare-dataframes-regardless-of-column-order/125491 "2025-02-04T14:42:17Z")

</div>

Hi! I’m probably doing something wrong but I cannot seem to find an easy solution to this. Imagine I have a dataframe (e.g. the Palmer penguins data) and I convert it from wide to tidy format: using PalmerPenguins, Dat…

---

## [How to make Pluto.jl load all rows of a DataFrame](https://discourse.julialang.org/t/how-to-make-pluto-jl-load-all-rows-of-a-dataframe/125461)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 5\
**Last updated:** [February 4, 2025, 11:46am UTC](https://discourse.julialang.org/t/how-to-make-pluto-jl-load-all-rows-of-a-dataframe/125461 "2025-02-04T11:46:47Z")

</div>

I have a DataFrame with ~100 rows. How do I make the DataFrame be displayed with all of its rows within Pluto.jl? The default view is this: What I’d like is this: where all elements are visible within a little sc…

---

## [Joining on a DataFrame on an argument and column](https://discourse.julialang.org/t/joining-on-a-dataframe-on-an-argument-and-column/124613)

<div class="topic-metadata">

**Author:** [@Snowy](https://discourse.julialang.org/u/Snowy)\
**Replies:** 3\
**Last updated:** [January 11, 2025, 9:33pm UTC](https://discourse.julialang.org/t/joining-on-a-dataframe-on-an-argument-and-column/124613 "2025-01-11T21:33:07Z")

</div>

Hello, Is it possible to join DataFrames on an argument and a column header? E.g.: New\_DF = innerjoin(DF1,DF2, on = ID =\> :Store\_ID) where “ID” is an argument of a function and “:Store\_ID” is a specific column within …

---

## [Sequentially add data to a DataFrame](https://discourse.julialang.org/t/sequentially-add-data-to-a-dataframe/12927)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 4\
**Last updated:** [January 9, 2025, 1:47pm UTC](https://discourse.julialang.org/t/sequentially-add-data-to-a-dataframe/12927 "2025-01-09T13:47:50Z")

</div>

I often need to populate a DataFrame sequentially, one iteration at a time. I therefore end up initiating a DataFrame with mock data but with the correct types, deleting that first row, and then iterating through the rea…

---

## [Note on eachindex behavior with GroupedDataFrame](https://discourse.julialang.org/t/note-on-eachindex-behavior-with-groupeddataframe/124439)

<div class="topic-metadata">

**Author:** [@George9000](https://discourse.julialang.org/u/George9000)\
**Replies:** 1\
**Last updated:** [January 5, 2025, 10:56am UTC](https://discourse.julialang.org/t/note-on-eachindex-behavior-with-groupeddataframe/124439 "2025-01-05T10:56:04Z")

</div>

eachindex used on a GroupedDataFrame, returns a GroupKey, such as GroupKey: (site = 'b',). When using the indices to create figure layouts in Makie or other plotting packages, (Axis(fig\[i, 1\]), one should explicitly ask…

---

## [The state of DataFrames.jl H2O benchmark](https://discourse.julialang.org/t/the-state-of-dataframes-jl-h2o-benchmark/43081)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 53\
**Last updated:** [January 1, 2025, 8:45am UTC](https://discourse.julialang.org/t/the-state-of-dataframes-jl-h2o-benchmark/43081 "2025-01-01T08:45:18Z")

</div>

@jangorecki has released the newest Database-like ops benchmark (by the way - thank you Jan for jour fantastic work!). I have decided to write this post as for the first time with DataFrames.jl 0.21.4 + CSV.jl 0.7.1 we h…

---

## [Can't refer to columns with spaces in names in @mutate](https://discourse.julialang.org/t/cant-refer-to-columns-with-spaces-in-names-in-mutate/123733)

<div class="topic-metadata">

**Author:** [@Geoff\_Russell](https://discourse.julialang.org/u/Geoff_Russell)\
**Replies:** 4\
**Last updated:** [December 29, 2024, 11:25pm UTC](https://discourse.julialang.org/t/cant-refer-to-columns-with-spaces-in-names-in-mutate/123733 "2024-12-29T23:25:53Z")

</div>

I want to do a simple mutate(a=b+c), but b and c have spaces in the names. Have tried various things without success. using DataFrames using TidierData df=DataFrame(“The Name”=\>\[4,5,6\],“Second Name”=\>\[7,8,9\]) @chain …

---

## [How to \`combine\` row vectors](https://discourse.julialang.org/t/how-to-combine-row-vectors/123940)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 5\
**Last updated:** [December 18, 2024, 9:24pm UTC](https://discourse.julialang.org/t/how-to-combine-row-vectors/123940 "2024-12-18T21:24:58Z")

</div>

Hi All, Just wondering how I can apply a function to rows containing vectors when doing a groupby → combine: using DataFrames df = DataFrame(group = \["A", "A", "B", "B"\], v1 = \[ \[1, 2\], \[3, 4\], \[5, 6\], \[7, 8\] \], v2 = \[…

---

## [Looking for a clean way to add a row in a DataFrame](https://discourse.julialang.org/t/looking-for-a-clean-way-to-add-a-row-in-a-dataframe/123891)

<div class="topic-metadata">

**Author:** [@dobby](https://discourse.julialang.org/u/dobby)\
**Replies:** 10\
**Last updated:** [December 18, 2024, 2:44pm UTC](https://discourse.julialang.org/t/looking-for-a-clean-way-to-add-a-row-in-a-dataframe/123891 "2024-12-18T14:44:24Z")

</div>

Hello, I am new to Julia, so please have mercy. I am reading multiple CSV files, where the rows are the same. But in order to distinguish the different files I’m reading, I have to add a row to indicate that. Here is …

---

## [How (best) to transform a huge DataFrame into wide-format](https://discourse.julialang.org/t/how-best-to-transform-a-huge-dataframe-into-wide-format/123415)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 8\
**Last updated:** [December 4, 2024, 10:14am UTC](https://discourse.julialang.org/t/how-best-to-transform-a-huge-dataframe-into-wide-format/123415 "2024-12-04T10:14:13Z")

</div>

I have a DataFrame with columns like open, high, low, close, and vol for multiple tickers, e.g. df1 = DataFrame( date\_time = repeat(\["2024-12-02T14:30:00", "2024-12-02T16:00:00","2024-12-02T17:30:00", "2024-12-02T19:00:…

---

## [DataFrames: How to remove rows containing NaNs when there are also missings](https://discourse.julialang.org/t/dataframes-how-to-remove-rows-containing-nans-when-there-are-also-missings/61396)

<div class="topic-metadata">

**Author:** [@florian](https://discourse.julialang.org/u/florian)\
**Replies:** 9\
**Last updated:** [November 28, 2024, 10:01pm UTC](https://discourse.julialang.org/t/dataframes-how-to-remove-rows-containing-nans-when-there-are-also-missings/61396 "2024-11-28T22:01:49Z")

</div>

Assume I have the following DataFrame and want to remove rows containing NaN: df = DataFrame(a=\[NaN, 1.1, NaN, missing, missing\], b=\[1.1, 2, 3, missing, NaN\], c='a':'e'); For just one column I could do something like: …

---

## [DataFrames: Which formats (if any) support saving of metadata](https://discourse.julialang.org/t/dataframes-which-formats-if-any-support-saving-of-metadata/123134)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 6\
**Last updated:** [November 27, 2024, 5:23pm UTC](https://discourse.julialang.org/t/dataframes-which-formats-if-any-support-saving-of-metadata/123134 "2024-11-27T17:23:37Z")

</div>

Are there file formats that support saving of metadata (global and columnar)?

---

## [DataFrames and MLJ](https://discourse.julialang.org/t/dataframes-and-mlj/122847)

<div class="topic-metadata">

**Author:** [@Jose\_Ghislain\_Quenum](https://discourse.julialang.org/u/Jose_Ghislain_Quenum)\
**Replies:** 4\
**Last updated:** [November 24, 2024, 7:04pm UTC](https://discourse.julialang.org/t/dataframes-and-mlj/122847 "2024-11-24T19:04:31Z")

</div>

Hi all, I am experiencing a weird behavior from Pluto. I have a dataset that contains more than 1M observations, although the size is about 75M. I’ve been able to cleanup the dataset and address the missing values. Howe…

---

## [Transforming a daily DataFrame with missing values into a DataFrame with end-of-month values](https://discourse.julialang.org/t/transforming-a-daily-dataframe-with-missing-values-into-a-dataframe-with-end-of-month-values/122870)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 11\
**Last updated:** [November 22, 2024, 4:15pm UTC](https://discourse.julialang.org/t/transforming-a-daily-dataframe-with-missing-values-into-a-dataframe-with-end-of-month-values/122870 "2024-11-22T16:15:51Z")

</div>

I am trying to transform a daily DataFrame (df) into a monthly DataFrame (monthly\_df) with end-of-month values. The following code works: monthly\_df = df\[findall(date -\> date == lastdayofmonth(date), df.date), :\] Howev…

---

## [Understanding DataFrame allocations](https://discourse.julialang.org/t/understanding-dataframe-allocations/122792)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 1\
**Last updated:** [November 18, 2024, 10:16pm UTC](https://discourse.julialang.org/t/understanding-dataframe-allocations/122792 "2024-11-18T22:16:22Z")

</div>

Hi there, The split-apply-combine strategy is something that I use a lot so Im trying to understand a bit more what goes under the hood so that I can write better code. I was just looking at the following example: df =…

---

## [Combine rows but keep all columns](https://discourse.julialang.org/t/combine-rows-but-keep-all-columns/122593)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 9\
**Last updated:** [November 14, 2024, 9:42pm UTC](https://discourse.julialang.org/t/combine-rows-but-keep-all-columns/122593 "2024-11-14T21:42:54Z")

</div>

Hi all, due to the lack of copycalls kwarg in combine, I am not sure if there is a more efficient way to achieve what I want to do. The following code groups the example data frame by ID and then sums the values in Data…

---

## [How to convert a dataframe into a 1-D vector, line by line?](https://discourse.julialang.org/t/how-to-convert-a-dataframe-into-a-1-d-vector-line-by-line/122594)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 6\
**Last updated:** [November 14, 2024, 4:29pm UTC](https://discourse.julialang.org/t/how-to-convert-a-dataframe-into-a-1-d-vector-line-by-line/122594 "2024-11-14T16:29:19Z")

</div>

Hi, I have a dataframe looking like: using DataFrames df = DataFrame(a=1:4, b=5:8) 4×2 DataFrame Row │ a b │ Int64 Int64 ─────┼────────────── 1 │ 1 5 2 │ 2 6 3 │ 3 …

---

## [Issue with DataFrame Column Type and Recognition in Julia Scripts](https://discourse.julialang.org/t/issue-with-dataframe-column-type-and-recognition-in-julia-scripts/122595)

<div class="topic-metadata">

**Author:** [@Tommi\_P\_Laiho](https://discourse.julialang.org/u/Tommi_P_Laiho)\
**Replies:** 2\
**Last updated:** [November 14, 2024, 12:56am UTC](https://discourse.julialang.org/t/issue-with-dataframe-column-type-and-recognition-in-julia-scripts/122595 "2024-11-14T00:56:47Z")

</div>

Hello Julia Community, I am currently working on a project involving statistical modeling in Julia, where I am facing an issue with reading and processing a DataFrame. My project includes three main scripts: generate\_…

---

## [Datetime operations](https://discourse.julialang.org/t/datetime-operations/122507)

<div class="topic-metadata">

**Author:** [@SergeantMike67](https://discourse.julialang.org/u/SergeantMike67)\
**Replies:** 5\
**Last updated:** [November 12, 2024, 5:56pm UTC](https://discourse.julialang.org/t/datetime-operations/122507 "2024-11-12T17:56:33Z")

</div>

How does one get a datetime column in a Dataframe to be just the time in the format of “HH:MM:SS”. Currently, those with a time entered, reads as 1899-12-30T13:00:00 and I need it to be just 13:00 The reason is that I …

---

## [How to filter dataframe rows with a boolean mask?](https://discourse.julialang.org/t/how-to-filter-dataframe-rows-with-a-boolean-mask/121873)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 2\
**Last updated:** [October 28, 2024, 3:28pm UTC](https://discourse.julialang.org/t/how-to-filter-dataframe-rows-with-a-boolean-mask/121873 "2024-10-28T15:28:45Z")

</div>

Hi, I would like to the same thing as this python code: import pandas as pd array = \[1,2,3\] df = pd.DataFrame(array) mask = \[True, False, True\] new\_df = df\[mask\] \>\>\> print(new\_df) 0 0 1 2 3 Looked around, but …

---

## [Plots.jl - Plot groups of data on different subplots](https://discourse.julialang.org/t/plots-jl-plot-groups-of-data-on-different-subplots/74477)

<div class="topic-metadata">

**Author:** [@cripcate](https://discourse.julialang.org/u/cripcate)\
**Replies:** 8\
**Last updated:** [October 28, 2024, 8:47am UTC](https://discourse.julialang.org/t/plots-jl-plot-groups-of-data-on-different-subplots/74477 "2024-10-28T08:47:14Z")

</div>

Consider this sample data: using DataFrames, Plots, Random sample\_data = DataFrame(\[rand(10), sample(\['A', 'B', 'C'\], 10)\], \["value", "group"\]) 10×2 DataFrame Row │ value group │ Float64 Char ─────┼────…

---

## [DataFramesMeta: @rsubset or condition?](https://discourse.julialang.org/t/dataframesmeta-rsubset-or-condition/121763)

<div class="topic-metadata">

**Author:** [@alecStewart1](https://discourse.julialang.org/u/alecStewart1)\
**Replies:** 2\
**Last updated:** [October 25, 2024, 10:39pm UTC](https://discourse.julialang.org/t/dataframesmeta-rsubset-or-condition/121763 "2024-10-25T22:39:08Z")

</div>

Say I have some dataframe where I want to select items by one condition or another that’s a combination. @rsubset df :x == 1 || :x == 2 :y == 3 With the data I’m working with, this returns matches of the 2nd clause and…

---

## [Where to begin for using Julia ML (Flux/MLJ/MLJFlux) with custom datasets?](https://discourse.julialang.org/t/where-to-begin-for-using-julia-ml-flux-mlj-mljflux-with-custom-datasets/121470)

<div class="topic-metadata">

**Author:** [@alecStewart1](https://discourse.julialang.org/u/alecStewart1)\
**Replies:** 10\
**Last updated:** [October 21, 2024, 5:41pm UTC](https://discourse.julialang.org/t/where-to-begin-for-using-julia-ml-flux-mlj-mljflux-with-custom-datasets/121470 "2024-10-21T17:41:05Z")

</div>

Hello again, friends, I thought I’d ask this as ML and data science are somewhat out of my forte. I’d like to use Julia for analyzing different datasets, not just for work. So to give you an idea, let me give a simple …

---

## [Requiring a NamedTuple instead of just a tuple to return multiple columns from a function for DataFrames.jl seem unintuitive. Discussion](https://discourse.julialang.org/t/requiring-a-namedtuple-instead-of-just-a-tuple-to-return-multiple-columns-from-a-function-for-dataframes-jl-seem-unintuitive-discussion/119691)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [September 22, 2024, 1:06pm UTC](https://discourse.julialang.org/t/requiring-a-namedtuple-instead-of-just-a-tuple-to-return-multiple-columns-from-a-function-for-dataframes-jl-seem-unintuitive-discussion/119691 "2024-09-22T13:06:28Z")

</div>

I tried to read the transform doc for DataFrames.jl and I have to say it’s tough going. But I think it contains lots of info. The situation I want to discuss is actually documented in the doc but the question, how do I …

---

## [Array of tuples to DataFrame](https://discourse.julialang.org/t/array-of-tuples-to-dataframe/119494)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [September 17, 2024, 12:30pm UTC](https://discourse.julialang.org/t/array-of-tuples-to-dataframe/119494 "2024-09-17T12:30:11Z")

</div>

How can I convert an array of tuples (NOT named tuples) into a DataFrame? Code to create an array of named tuples: parking\_sections = \[\] for i in 1:10 push!(parking\_sections, (i, rand(1)\[1\])) end

---

## [Spatial join with dataframes](https://discourse.julialang.org/t/spatial-join-with-dataframes/93241)

<div class="topic-metadata">

**Author:** [@jade\_mackay](https://discourse.julialang.org/u/jade_mackay)\
**Replies:** 27\
**Last updated:** [September 6, 2024, 7:54am UTC](https://discourse.julialang.org/t/spatial-join-with-dataframes/93241 "2024-09-06T07:54:11Z")

</div>

Hello, Increasingly I find myself needing to join dataframes on Geographic Information System (GIS) objects and it seems no capability exists to do so in the Julia eco-system. Nor does it seem there is much interest (c…

---

## [Correct use of @spawn with data frames](https://discourse.julialang.org/t/correct-use-of-spawn-with-data-frames/118921)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 2\
**Last updated:** [September 3, 2024, 11:15am UTC](https://discourse.julialang.org/t/correct-use-of-spawn-with-data-frames/118921 "2024-09-03T11:15:46Z")

</div>

I am new to multithreading, I have the following snippet of code: memberships = table\_read(db, "IndividualMemberships") sort!(memberships, \[:IndividualId, :HouseholdId, :StartDate\]) gdf\_memberships = groupby(memberships…

---

## [CSV, DataFrame read data file with string and Float64 columns](https://discourse.julialang.org/t/csv-dataframe-read-data-file-with-string-and-float64-columns/118980)

<div class="topic-metadata">

**Author:** [@Xiu-Lei](https://discourse.julialang.org/u/Xiu-Lei)\
**Replies:** 3\
**Last updated:** [September 3, 2024, 10:13am UTC](https://discourse.julialang.org/t/csv-dataframe-read-data-file-with-string-and-float64-columns/118980 "2024-09-03T10:13:57Z")

</div>

I would like to read this data file \[first row is title\], containing string in the first column, and float64 in the following columns, " id aMphi aMoctet a\*Mdecuplet A651 0.27507 0…

---

## [Get the maximum value by row in a DataFrame containing missing values](https://discourse.julialang.org/t/get-the-maximum-value-by-row-in-a-dataframe-containing-missing-values/118777)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 10\
**Last updated:** [August 30, 2024, 5:37am UTC](https://discourse.julialang.org/t/get-the-maximum-value-by-row-in-a-dataframe-containing-missing-values/118777 "2024-08-30T05:37:15Z")

</div>

I want to aggregate data over rows, which works well if the row contains some values. When the data row is empty maximum throws an error. Maybe someone has an idea how to make this faster. My table has usually about r…

---

## [Help with dataframes please](https://discourse.julialang.org/t/help-with-dataframes-please/118502)

<div class="topic-metadata">

**Author:** [@DTL](https://discourse.julialang.org/u/DTL)\
**Replies:** 5\
**Last updated:** [August 29, 2024, 5:03am UTC](https://discourse.julialang.org/t/help-with-dataframes-please/118502 "2024-08-29T05:03:13Z")

</div>

Hi, I’ve got a large CSV file I’m trying to analyse in Julia. I can load it into a data frame easily and I’ve got the column types identified correctly. Format is basically Location datetime value area1, 2024-07-20 2…

[Previous page](https://discourse.julialang.org/tag/dataframes/192.md?match_all_tags=true&page=1&tags%5B%5D=dataframes)

[Next page](https://discourse.julialang.org/tag/dataframes/192.md?match_all_tags=true&page=3&tags%5B%5D=dataframes)
