# Latest

**URL:** https://discourse.julialang.org/latest.md?page=864

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

**Page:** 865

---

## [Performance: Fast way to access numbers in Dataframes or alternatives](https://discourse.julialang.org/t/performance-fast-way-to-access-numbers-in-dataframes-or-alternatives/89884)

<div class="topic-metadata">

**Author:** [@pjuergens](https://discourse.julialang.org/u/pjuergens)\
**Replies:** 12\
**Last updated:** [November 15, 2022, 9:35am UTC](https://discourse.julialang.org/t/performance-fast-way-to-access-numbers-in-dataframes-or-alternatives/89884 "2022-11-15T09:35:43Z")

</div>

Hello together, I’m searching for a fast (or the fastest) way to access datapoints/numbers in a dataframes-like structure. I have 57 timeseries (columns) with 43800 datapoints (rows) each that are read in from a csv-fil…

---

## [Lagragian multipliers in JuMP](https://discourse.julialang.org/t/lagragian-multipliers-in-jump/90234)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 6\
**Last updated:** [November 15, 2022, 8:58am UTC](https://discourse.julialang.org/t/lagragian-multipliers-in-jump/90234 "2022-11-15T08:58:47Z")

</div>

I appreciate questions about Lagrange multipliers in Jump have been discussed before, here the sign change is described. However, I’m having trouble reproducing example 6.32 (page 163) in Nonlinear and mixed-integer opti…

---

## [MPI.API.MPI\_Reduce\_scatter ERRORS](https://discourse.julialang.org/t/mpi-api-mpi-reduce-scatter-errors/90093)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 7\
**Last updated:** [November 15, 2022, 6:09am UTC](https://discourse.julialang.org/t/mpi-api-mpi-reduce-scatter-errors/90093 "2022-11-15T06:09:09Z")

</div>

From low-level API in MPI.jl, we know MPI.API.MPI\_Reduce\_scatter(sendbuf, recvbuf, recvcounts, datatype, op, comm) When I ran the code below with mpiexecjl -n 3 julia testReduce\_scatter.jl: # testReduce\_scatter.jl usi…

---

## [DataFrame how to \`groupby\` then index with unspecified keys (merge them)](https://discourse.julialang.org/t/dataframe-how-to-groupby-then-index-with-unspecified-keys-merge-them/90248)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 12\
**Last updated:** [November 15, 2022, 3:59am UTC](https://discourse.julialang.org/t/dataframe-how-to-groupby-then-index-with-unspecified-keys-merge-them/90248 "2022-11-15T03:59:22Z")

</div>

gdf = groupby(df, \[:gender, :nationality, :hair\_color\]); we know we can gdf\[(; gender = :X, natiaonlity = :US, hair\_color=:blue)\] to get a specific subdataframe, but this doesn’t work: gdf\[(; gender = :X, natiaonlity =…

---

## [Type aggregation](https://discourse.julialang.org/t/type-aggregation/90270)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 2\
**Last updated:** [November 15, 2022, 3:12am UTC](https://discourse.julialang.org/t/type-aggregation/90270 "2022-11-15T03:12:26Z")

</div>

I have these structs: struct A{T} n::T end struct B{T,N} n::T m::N end C{K} = B{T,N} where {T,N\<:A{K}} where {K} a1 = A(1) a2 = A(1.0); Then I construct a Vector: vec1 = \[B(1, a1), B(1, a1)\] 2-element …

---

## [Suppressing location information for @info in Jupyter notebook](https://discourse.julialang.org/t/suppressing-location-information-for-info-in-jupyter-notebook/90260)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [November 15, 2022, 2:46am UTC](https://discourse.julialang.org/t/suppressing-location-information-for-info-in-jupyter-notebook/90260 "2022-11-15T02:46:27Z")

</div>

Dear All, Is there a way to suppress the location information for @info in Jupyter notebook? For example, if I type the following in a Jupyter notebook cell @info "hello world" and execute the cell, then the output in…

---

## [Create non-linear structure in higher dimensional space](https://discourse.julialang.org/t/create-non-linear-structure-in-higher-dimensional-space/90204)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 17\
**Last updated:** [November 14, 2022, 11:52pm UTC](https://discourse.julialang.org/t/create-non-linear-structure-in-higher-dimensional-space/90204 "2022-11-14T23:52:03Z")

</div>

Suppose I’m creating a non-linear structure in a 20-dim space. Right now I have a vector m = rand(1) vector = \[cos(m),sin(m),rand(1),rand(1),rand(1),rand(1),rand(1),rand(1),rand(1),rand(1),rand(1),rand(1),rand(1),rand(1…

---

## [What is the difference (interpretation) between the partial R^2 and the SHAP value for a linear regression model?](https://discourse.julialang.org/t/what-is-the-difference-interpretation-between-the-partial-r-2-and-the-shap-value-for-a-linear-regression-model/90265)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 11:27pm UTC](https://discourse.julialang.org/t/what-is-the-difference-interpretation-between-the-partial-r-2-and-the-shap-value-for-a-linear-regression-model/90265 "2022-11-14T23:27:31Z")

</div>

Both calculate the contribution of a given variable to the output’s variability but… To calculate the coefficient of partial determination R2 for a given variable: We calculate the R2 with and without that variable and…

---

## [Regression with categorical variables. Reference porevious levels. Dummy](https://discourse.julialang.org/t/regression-with-categorical-variables-reference-porevious-levels-dummy/90194)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 5\
**Last updated:** [November 14, 2022, 11:08pm UTC](https://discourse.julialang.org/t/regression-with-categorical-variables-reference-porevious-levels-dummy/90194 "2022-11-14T23:08:49Z")

</div>

Hello. If a do a linear regression model I can include the year as a categorical variable (instead of numerical) in order to estimate a different coefficient for each year. This is commonly done when the variable is not…

---

## [Should I believe this Core.Box()?](https://discourse.julialang.org/t/should-i-believe-this-core-box/90263)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 10:55pm UTC](https://discourse.julialang.org/t/should-i-believe-this-core-box/90263 "2022-11-14T22:55:05Z")

</div>

In a debug session. Note that D3\_ becomes instantly a Core.Box() but the precedent line, which is virtually equal, gets assigned as expected.

---

## [How to convert a string to ISO-standard datetime?](https://discourse.julialang.org/t/how-to-convert-a-string-to-iso-standard-datetime/90261)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 10:33pm UTC](https://discourse.julialang.org/t/how-to-convert-a-string-to-iso-standard-datetime/90261 "2022-11-14T22:33:23Z")

</div>

I have a DataFrame with a column filled with type string for date and time. The strings are formatted as "2017-01-01 00:00:00+00:00", for instance. Searching online I found that this format is the ISO-standard for date a…

---

## [DEV version slower again](https://discourse.julialang.org/t/dev-version-slower-again/90256)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 10:14pm UTC](https://discourse.julialang.org/t/dev-version-slower-again/90256 "2022-11-14T22:14:26Z")

</div>

This had happen with v1.8 but v1.9DEV had recovered … until a few day ago (my latest faster 1.9DEV was about 20 days old). Now :cry: | | |\_| | | | (\_| | | Version 1.7.0 (2021-11-30) \_/ |\\\_\_'\_|\_|\_|\\\_\_'\_| | Offici…

---

## [Dependency Error :'(](https://discourse.julialang.org/t/dependency-error/90262)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 10:05pm UTC](https://discourse.julialang.org/t/dependency-error/90262 "2022-11-14T22:05:14Z")

</div>

I am getting this error from my use of BlockDiagonals: ERROR: Unsatisfiable requirements detected for package BlockDiagonals \[0a1fb500\]: BlockDiagonals \[0a1fb500\] log: ├─BlockDiagonals \[0a1fb500\] has no known versions…

---

## [Julia nightly is 27 days old](https://discourse.julialang.org/t/julia-nightly-is-27-days-old/90054)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 7\
**Last updated:** [November 14, 2022, 10:01pm UTC](https://discourse.julialang.org/t/julia-nightly-is-27-days-old/90054 "2022-11-14T22:01:23Z")

</div>

Hi, Are there currently issues with the nightly Julia build (windows)? If yes, where can I see the issue affecting the build process? Thank you Kind regards

---

## [Proper use of MDS and PCA](https://discourse.julialang.org/t/proper-use-of-mds-and-pca/90257)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 4\
**Last updated:** [November 14, 2022, 9:40pm UTC](https://discourse.julialang.org/t/proper-use-of-mds-and-pca/90257 "2022-11-14T21:40:49Z")

</div>

Assume I have a 20\*85 matrix. Here is my code M = fit(PCA, matrix; maxoutdim=2) Yte = predict(M, matrix) M1 = fit(MDS, matrix; maxoutdim=2, distances=false) Yte1 = predict(M1) My Yte and Yte1 are identicall…

---

## [Recording an MCMC Chain](https://discourse.julialang.org/t/recording-an-mcmc-chain/90243)

<div class="topic-metadata">

**Author:** [@clinton](https://discourse.julialang.org/u/clinton)\
**Replies:** 9\
**Last updated:** [November 14, 2022, 9:35pm UTC](https://discourse.julialang.org/t/recording-an-mcmc-chain/90243 "2022-11-14T21:35:15Z")

</div>

I’ve written my own MCMC code. MCMCChains provides some helper functions wrt working with already completed chains. As I iterate through the chain, what is the best way to store the each pass? E.g., if I complete non-bu…

---

## [UndefVarError: transform not defined](https://discourse.julialang.org/t/undefvarerror-transform-not-defined/90259)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 9:27pm UTC](https://discourse.julialang.org/t/undefvarerror-transform-not-defined/90259 "2022-11-14T21:27:50Z")

</div>

I got this error and my code is using MultivariateStats, RDatasets, Plots # load iris dataset iris = dataset("datasets", "iris") # take half of the dataset X = Matrix(iris\[1:2:end,1:4\])' X\_labels = Vector(iris\[1:2:end…

---

## [Splitting kwargs into specific keyword arguments?](https://discourse.julialang.org/t/splitting-kwargs-into-specific-keyword-arguments/90131)

<div class="topic-metadata">

**Author:** [@TTolppanen](https://discourse.julialang.org/u/TTolppanen)\
**Replies:** 10\
**Last updated:** [November 14, 2022, 9:24pm UTC](https://discourse.julialang.org/t/splitting-kwargs-into-specific-keyword-arguments/90131 "2022-11-14T21:24:54Z")

</div>

Let’s say I have these two functions: function funA(; a=2.0) #something end function funB(; b=4.0) #something end They both take keywords arguments with default values. Now if I want to use these in a third fu…

---

## [Replacing strings in specific position indices as in \`str\_sub()\` in \`stringr\`](https://discourse.julialang.org/t/replacing-strings-in-specific-position-indices-as-in-str-sub-in-stringr/90187)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 9\
**Last updated:** [November 14, 2022, 7:39pm UTC](https://discourse.julialang.org/t/replacing-strings-in-specific-position-indices-as-in-str-sub-in-stringr/90187 "2022-11-14T19:39:24Z")

</div>

Hi. I am tring to duplicate the functionality of the R package stringr in Julia so that I prepare a cheatsheet for string manipulation in Julia. Particularly, I am thinking of how to achieve str\_sub()'s output in Julia.…

---

## [Should there be a Chemistry Domain/Organization?](https://discourse.julialang.org/t/should-there-be-a-chemistry-domain-organization/36475)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 30\
**Last updated:** [November 14, 2022, 7:44pm UTC](https://discourse.julialang.org/t/should-there-be-a-chemistry-domain-organization/36475 "2022-11-14T19:44:56Z")

</div>

Should there be a chemistry domain/organization? I think this would have very few users… But, there are a few packages of this nature (maybe 5-6 now?). I am a chemist by training so this interests me, but I don’t know i…

---

## [What is the future of StatsModels.jl](https://discourse.julialang.org/t/what-is-the-future-of-statsmodels-jl/90255)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 6:47pm UTC](https://discourse.julialang.org/t/what-is-the-future-of-statsmodels-jl/90255 "2022-11-14T18:47:21Z")

</div>

Hi! I am afraid, that more than year there was no significant commits into StatsModels.jl. As I understand devs are planning to remake FunctionTerm and some other less sensitive things. So I try to understand what is rea…

---

## [Installation clobbers LDFLAGS](https://discourse.julialang.org/t/installation-clobbers-ldflags/90139)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 3\
**Last updated:** [November 14, 2022, 5:27pm UTC](https://discourse.julialang.org/t/installation-clobbers-ldflags/90139 "2022-11-14T17:27:36Z")

</div>

I’m trying to build Julia on some complicated infra with rather strict tooling. I’m trying to do things the “right way” and build all of the listed dependencies (i.e. no system dependency flags). When I get to the part …

---

## [Is calling \`x = @spawn f(x)\` a bad idea?](https://discourse.julialang.org/t/is-calling-x-spawn-f-x-a-bad-idea/89934)

<div class="topic-metadata">

**Author:** [@artemsolod](https://discourse.julialang.org/u/artemsolod)\
**Replies:** 5\
**Last updated:** [November 14, 2022, 4:22pm UTC](https://discourse.julialang.org/t/is-calling-x-spawn-f-x-a-bad-idea/89934 "2022-11-14T16:22:24Z")

</div>

I am a bit unclear on how and when variables are captured in @spawn call. For instance, the following errors julia\> using Base.Threads julia\> let x = 1 x = @spawn x + 3 fetch(x) end ERROR: …

---

## [A Kerchunk-like package for Julia](https://discourse.julialang.org/t/a-kerchunk-like-package-for-julia/89996)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 10\
**Last updated:** [November 14, 2022, 4:08pm UTC](https://discourse.julialang.org/t/a-kerchunk-like-package-for-julia/89996 "2022-11-14T16:08:32Z")

</div>

Does anyone know if there is a Kerchunk-like package for Julia or if there is any work towards such a package? Kerchunk for Julia would be immensely useful.

---

## [Equal method to matlab unique in rows](https://discourse.julialang.org/t/equal-method-to-matlab-unique-in-rows/90240)

<div class="topic-metadata">

**Author:** [@Bozaga\_Murat](https://discourse.julialang.org/u/Bozaga_Murat)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 3:37pm UTC](https://discourse.julialang.org/t/equal-method-to-matlab-unique-in-rows/90240 "2022-11-14T15:37:05Z")

</div>

Hello everyboday, I not found the equal method “unique(x,‘rows’)” in Julia to matlab. Does it know anybody ? Thanks.

---

## [Constructor with type parameters and keywords](https://discourse.julialang.org/t/constructor-with-type-parameters-and-keywords/90244)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 3:30pm UTC](https://discourse.julialang.org/t/constructor-with-type-parameters-and-keywords/90244 "2022-11-14T15:30:07Z")

</div>

Suppose I have a constructor with some type parameters that do not correspond to fields, which I would like to determine automatically, in addition to getting the rest from keywords. Eg Base.@kwdef struct Foo{K,T} x…

---

## [How to consider the timezone in unix2datetime?](https://discourse.julialang.org/t/how-to-consider-the-timezone-in-unix2datetime/90179)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 9\
**Last updated:** [November 14, 2022, 2:49pm UTC](https://discourse.julialang.org/t/how-to-consider-the-timezone-in-unix2datetime/90179 "2022-11-14T14:49:17Z")

</div>

Hello everyone. In the code below my time zone is not being considered in dt. Please, how to make it be considered? using Dates function test() f = "local/file" u = mtime(f) unix2datetime(u) # three hours too long …

---

## [Threads (including Polyester) question](https://discourse.julialang.org/t/threads-including-polyester-question/90233)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 1:10pm UTC](https://discourse.julialang.org/t/threads-including-polyester-question/90233 "2022-11-14T13:10:15Z")

</div>

I get worse timing with threads (in the best case), and also different values, not pi, or at best if I’m lucky. I had already sped that benchmark up more than 5x, and curious if threading in some form could make even bet…

---

## [ERROR: expected package \`CSV\` to exist in the manifest](https://discourse.julialang.org/t/error-expected-package-csv-to-exist-in-the-manifest/90227)

<div class="topic-metadata">

**Author:** [@clarakoehne](https://discourse.julialang.org/u/clarakoehne)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 2:27pm UTC](https://discourse.julialang.org/t/error-expected-package-csv-to-exist-in-the-manifest/90227 "2022-11-14T14:27:20Z")

</div>

Hello everyone! I am getting a very strange error when I try to run my Julia program. It looks as follows: ERROR: expected package \`CSV \[336ed68f\]\` to exist in the manifest (use \`resolve\` to populate the manifest) Stack…

---

## [Metaprogramming: Defining new methods to existing function](https://discourse.julialang.org/t/metaprogramming-defining-new-methods-to-existing-function/90239)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 2:24pm UTC](https://discourse.julialang.org/t/metaprogramming-defining-new-methods-to-existing-function/90239 "2022-11-14T14:24:15Z")

</div>

I want to create a macro that adds methods to a function for particular types and creates some global variables (I know not the best practice but this is what I am trying). It is not difficult for me to do this if the m…

[Previous page](https://discourse.julialang.org/latest.md?page=863)

[Next page](https://discourse.julialang.org/latest.md?page=865)
