# Latest

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

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

**Page:** 1001

---

## [How to reshape wide to long?](https://discourse.julialang.org/t/how-to-reshape-wide-to-long/83284)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 13\
**Last updated:** [June 24, 2022, 10:48am UTC](https://discourse.julialang.org/t/how-to-reshape-wide-to-long/83284 "2022-06-24T10:48:42Z")

</div>

Dear all, I want to reshape the wide data to panel data, here is an example. julia\> df = DataFrame(id = \[1, 2, 3\], gdp1999 = \[2, 3, 4\], gdp2000 = \[3, 4, 5\], gdp2001 = \[6, 7, 8\], emp1999 = \[3, 2, 1…

---

## [Eigenvector for small non-Hermitian matrices](https://discourse.julialang.org/t/eigenvector-for-small-non-hermitian-matrices/83204)

<div class="topic-metadata">

**Author:** [@itzui](https://discourse.julialang.org/u/itzui)\
**Replies:** 6\
**Last updated:** [June 24, 2022, 10:05am UTC](https://discourse.julialang.org/t/eigenvector-for-small-non-hermitian-matrices/83204 "2022-06-24T10:05:53Z")

</div>

I have to calculate the eigenvector and eigenvalues for many (more than 60.000) non-Hermitian 4x4 matrices. I know that this can be slightly speed up by means of using LinearAlgebra.LAPACK.geevx! instead of using the eig…

---

## [Problems installing uber-juno and other packages in atom](https://discourse.julialang.org/t/problems-installing-uber-juno-and-other-packages-in-atom/24269)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 6\
**Last updated:** [June 24, 2022, 9:22am UTC](https://discourse.julialang.org/t/problems-installing-uber-juno-and-other-packages-in-atom/24269 "2022-06-24T09:22:26Z")

</div>

I installed julia to a local directory under MS Win 10, and then atom. But I’ve been unable to get atom set up for julia. As requested in this forum, I posted a bug report to https://github.com/JunoLab/Juno.jl/issues/2…

---

## [Change values to missing in a column](https://discourse.julialang.org/t/change-values-to-missing-in-a-column/82858)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 9\
**Last updated:** [June 24, 2022, 9:12am UTC](https://discourse.julialang.org/t/change-values-to-missing-in-a-column/82858 "2022-06-24T09:12:16Z")

</div>

So I have been trying to wrap my head around how to set a value to missing with an IF ELSE statement… It seems like this should be an easy way to do it: df= @chain df begin @transform :x= begin if :x != 0 …

---

## [MathTexEngine Warning](https://discourse.julialang.org/t/mathtexengine-warning/83286)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [June 24, 2022, 8:30am UTC](https://discourse.julialang.org/t/mathtexengine-warning/83286 "2022-06-24T08:30:20Z")

</div>

I am developing a package for my own research and started getting this weird warning when it pre-compiles. I’m not sure what is causing it or how to fix it. For reference, I have TexLive 2020 installed on my system. The…

---

## [Are these criticisms of Julia true?](https://discourse.julialang.org/t/are-these-criticisms-of-julia-true/83291)

<div class="topic-metadata">

**Author:** [@tatsumaru](https://discourse.julialang.org/u/tatsumaru)\
**Replies:** 3\
**Last updated:** [June 24, 2022, 7:35am UTC](https://discourse.julialang.org/t/are-these-criticisms-of-julia-true/83291 "2022-06-24T07:35:12Z")

</div>

I found this Reddit thread about someone asking if it’s still worth learning Julia in 2022 and some person listed a few items that he considered deal breakers when it came to Julia that I wanted to get a second opinion o…

---

## [Why is generating a list of posts in Franklin.jl so cumbersome?](https://discourse.julialang.org/t/why-is-generating-a-list-of-posts-in-franklin-jl-so-cumbersome/83260)

<div class="topic-metadata">

**Author:** [@philip](https://discourse.julialang.org/u/philip)\
**Replies:** 3\
**Last updated:** [June 24, 2022, 6:51am UTC](https://discourse.julialang.org/t/why-is-generating-a-list-of-posts-in-franklin-jl-so-cumbersome/83260 "2022-06-24T06:51:34Z")

</div>

I’ve been using Jekyll and love Julia, so thought I’d give Franklin.jl a try. But comparing the solution in Franklin.jl for generating a list of posts: to the solution in Jekyll: {% for post in site.posts %} \<li\> …

---

## [Problems encountered in installing Pkg for the first time](https://discourse.julialang.org/t/problems-encountered-in-installing-pkg-for-the-first-time/44559)

<div class="topic-metadata">

**Author:** [@sleepaway](https://discourse.julialang.org/u/sleepaway)\
**Replies:** 2\
**Last updated:** [June 24, 2022, 5:48am UTC](https://discourse.julialang.org/t/problems-encountered-in-installing-pkg-for-the-first-time/44559 "2022-06-24T05:48:30Z")

</div>

julia\> using Pkg julia\> Pkg.add(“PyPlot”) Updating registry at C:\\Users\\Administrator\\.juliapro\\JuliaPro\_v1.4.2-1\\registries\\JuliaPro Cannot reach authentication server at https://pkg.juliacomputing.com/auth or authen…

---

## [Flip image in makie.jl](https://discourse.julialang.org/t/flip-image-in-makie-jl/83278)

<div class="topic-metadata">

**Author:** [@Adi\_Rai](https://discourse.julialang.org/u/Adi_Rai)\
**Replies:** 4\
**Last updated:** [June 24, 2022, 5:12am UTC](https://discourse.julialang.org/t/flip-image-in-makie-jl/83278 "2022-06-24T05:12:42Z")

</div>

Hi everyone, I am trying to plot an image in Makie.jl however the image I get is flipped (both vertically and horizontally) for some reason. However when I plot the image in Plots.jl I get the perfect output. The image…

---

## [\[ANN\] CellListMap.jl: short-ranged particle pairwise computations (lennard-jones, gravitational, etc)](https://discourse.julialang.org/t/ann-celllistmap-jl-short-ranged-particle-pairwise-computations-lennard-jones-gravitational-etc/62585)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 38\
**Last updated:** [June 24, 2022, 2:07am UTC](https://discourse.julialang.org/t/ann-celllistmap-jl-short-ranged-particle-pairwise-computations-lennard-jones-gravitational-etc/62585 "2022-06-24T02:07:34Z")

</div>

This package is an implementation of cell lists for computing properties dependent on the distances between pairs of particles. Currently the package works with euclidean and three-dimensional systems, and accepts per…

---

## [Discourse logo - dark mode](https://discourse.julialang.org/t/discourse-logo-dark-mode/83274)

<div class="topic-metadata">

**Author:** [@Iagoba\_Apellaniz](https://discourse.julialang.org/u/Iagoba_Apellaniz)\
**Replies:** 4\
**Last updated:** [June 24, 2022, 1:58am UTC](https://discourse.julialang.org/t/discourse-logo-dark-mode/83274 "2022-06-24T01:58:16Z")

</div>

Logo cannot be seen in dark mode

---

## [Type stability while looping over Tuple](https://discourse.julialang.org/t/type-stability-while-looping-over-tuple/83272)

<div class="topic-metadata">

**Author:** [@NicolasW](https://discourse.julialang.org/u/NicolasW)\
**Replies:** 6\
**Last updated:** [June 24, 2022, 12:41am UTC](https://discourse.julialang.org/t/type-stability-while-looping-over-tuple/83272 "2022-06-24T00:41:59Z")

</div>

In the performance critical part of our code we encountered a type instability. Is there an easy way to resolve this? We have some input struct Sinput{X,D} input::X end s\_input = Sinput{Tuple{Float64,Int64}, 2}((1.3,4…

---

## [Julia vs. Python: Euler's sum of powers conjecture](https://discourse.julialang.org/t/julia-vs-python-eulers-sum-of-powers-conjecture/83262)

<div class="topic-metadata">

**Author:** [@jgforbes](https://discourse.julialang.org/u/jgforbes)\
**Replies:** 16\
**Last updated:** [June 24, 2022, 12:13am UTC](https://discourse.julialang.org/t/julia-vs-python-eulers-sum-of-powers-conjecture/83262 "2022-06-24T00:13:50Z")

</div>

The Julia code on this page is much slower than the Python examples. Euler’s sum of powers conjecture with code examples I wrote a Julia program similar to the fastest Python example: Julia function main() MAX = 25…

---

## [Why is the threaded version of this so much slower than the serial and distributed versions?](https://discourse.julialang.org/t/why-is-the-threaded-version-of-this-so-much-slower-than-the-serial-and-distributed-versions/83280)

<div class="topic-metadata">

**Author:** [@ElOceanografo](https://discourse.julialang.org/u/ElOceanografo)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 10:23pm UTC](https://discourse.julialang.org/t/why-is-the-threaded-version-of-this-so-much-slower-than-the-serial-and-distributed-versions/83280 "2022-06-23T22:23:39Z")

</div>

Minimal example of my problem: using ThreadsX using Statistics data = \[randn(1000) for i in 1:100, j in 1:200\] f(x) = mean(x) # warmup f(data\[1, 2\]) t\_serial = @elapsed map(f, data) t\_thread = @elapsed ThreadsX.map(…

---

## [Dataframe to vector](https://discourse.julialang.org/t/dataframe-to-vector/83248)

<div class="topic-metadata">

**Author:** [@gjh](https://discourse.julialang.org/u/gjh)\
**Replies:** 6\
**Last updated:** [June 23, 2022, 8:49pm UTC](https://discourse.julialang.org/t/dataframe-to-vector/83248 "2022-06-23T20:49:54Z")

</div>

How can one transform the tmp dataframe to be a 2-element Vector in the same format as rand(2) produces? Thank you for the help! Sorry for the simple questions. using DataFrames x = rand(3) y = rand(3) z = rand(3) d…

---

## [How to impose condition on n-tuple?](https://discourse.julialang.org/t/how-to-impose-condition-on-n-tuple/82882)

<div class="topic-metadata">

**Author:** [@Kevin\_12](https://discourse.julialang.org/u/Kevin_12)\
**Replies:** 9\
**Last updated:** [June 23, 2022, 7:51pm UTC](https://discourse.julialang.org/t/how-to-impose-condition-on-n-tuple/82882 "2022-06-23T19:51:05Z")

</div>

Is it possible to place some condition over the ements of Vector of Tuples to creat another Vector of Tuples? For example, I have buch of tuples demonstraing some properties of devices (property1, property2, deice\_I…

---

## [Adding objective to JuMP model changes feasibility?](https://discourse.julialang.org/t/adding-objective-to-jump-model-changes-feasibility/83200)

<div class="topic-metadata">

**Author:** [@mhar](https://discourse.julialang.org/u/mhar)\
**Replies:** 4\
**Last updated:** [June 23, 2022, 6:58pm UTC](https://discourse.julialang.org/t/adding-objective-to-jump-model-changes-feasibility/83200 "2022-06-23T18:58:49Z")

</div>

I have written a function that is supposed to output whether the problem is feasible and the Gram matrix. using DynamicPolynomials using JuMP using MosekTools using SumOfSquares @polyvar var1 var2 """ get\_max\_log\_de…

---

## [Reading Python datastructure (from text file) in Julia](https://discourse.julialang.org/t/reading-python-datastructure-from-text-file-in-julia/83261)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 3\
**Last updated:** [June 23, 2022, 6:54pm UTC](https://discourse.julialang.org/t/reading-python-datastructure-from-text-file-in-julia/83261 "2022-06-23T18:54:29Z")

</div>

Hi I have a file with a nested data structure, coming from a Python tool, that I would like to read in Julia. It’s basically a list with each item of the list being a dict which in its turn contains key/value-pairs of a…

---

## [Question: how to get dot products from size(x, n) matrix and length(n) vector](https://discourse.julialang.org/t/question-how-to-get-dot-products-from-size-x-n-matrix-and-length-n-vector/83257)

<div class="topic-metadata">

**Author:** [@bwanab](https://discourse.julialang.org/u/bwanab)\
**Replies:** 3\
**Last updated:** [June 23, 2022, 6:50pm UTC](https://discourse.julialang.org/t/question-how-to-get-dot-products-from-size-x-n-matrix-and-length-n-vector/83257 "2022-06-23T18:50:11Z")

</div>

Matrix: X2, Vector: w2 What I’m trying to do is get the vector of dot products from each row of the matrix with the vector. The best I’ve come up with so far is: sum(X2 .\* w2', dims=1) This works, but I have this n…

---

## [Turing probability queries always return 1](https://discourse.julialang.org/t/turing-probability-queries-always-return-1/83269)

<div class="topic-metadata">

**Author:** [@cmhainje](https://discourse.julialang.org/u/cmhainje)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 6:49pm UTC](https://discourse.julialang.org/t/turing-probability-queries-always-return-1/83269 "2022-06-23T18:49:24Z")

</div>

I made a probabilistic model that attempts to infer the center coordinates (h, k) and radius (R) of a circle given a number of points that were sampled from the circle, but when I try to query probabilities, I always get…

---

## [What exactly is this error? invalid base 10 digit 'c'](https://discourse.julialang.org/t/what-exactly-is-this-error-invalid-base-10-digit-c/83267)

<div class="topic-metadata">

**Author:** [@DFKMB](https://discourse.julialang.org/u/DFKMB)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 6:37pm UTC](https://discourse.julialang.org/t/what-exactly-is-this-error-invalid-base-10-digit-c/83267 "2022-06-23T18:37:42Z")

</div>

\[Album\] imgur.com Thanks.

---

## [Package for clustering data points](https://discourse.julialang.org/t/package-for-clustering-data-points/83154)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 8\
**Last updated:** [June 23, 2022, 5:22pm UTC](https://discourse.julialang.org/t/package-for-clustering-data-points/83154 "2022-06-23T17:22:55Z")

</div>

Any package recommendations for clustering data points? I see clustering.jl exist, however, I don’t see any recent activity on it. Is it still being maintained? Any other package that might be actively maintained?

---

## [\`transform!\` on a \`SubDataFrame\`](https://discourse.julialang.org/t/transform-on-a-subdataframe/83253)

<div class="topic-metadata">

**Author:** [@hdperez](https://discourse.julialang.org/u/hdperez)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 3:22pm UTC](https://discourse.julialang.org/t/transform-on-a-subdataframe/83253 "2022-06-23T15:22:09Z")

</div>

Hi, I am trying to do an in-place transformation on a subset of a dataframe. df\_filtered\_view = filter(args..., df, view = true) transform!(df\_filtered\_view, args...) However, it is not possible to use transform! on …

---

## [Compiler complains about "unexpected end"](https://discourse.julialang.org/t/compiler-complains-about-unexpected-end/83037)

<div class="topic-metadata">

**Author:** [@Steve\_Strongheart](https://discourse.julialang.org/u/Steve_Strongheart)\
**Replies:** 12\
**Last updated:** [June 23, 2022, 3:20pm UTC](https://discourse.julialang.org/t/compiler-complains-about-unexpected-end/83037 "2022-06-23T15:20:03Z")

</div>

Compiler complains about “unexpected end” on line 22, but if I remove it I get this error: syntax: incomplete: “function” at In\[35\]:1 requires end Stacktrace: \[1\] top-level scope at In\[35\]:1 \[2\] include\_string(::Fun…

---

## [Error: The following package names could not be resolved](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080)

<div class="topic-metadata">

**Author:** [@marshians](https://discourse.julialang.org/u/marshians)\
**Replies:** 10\
**Last updated:** [June 23, 2022, 2:38pm UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/83080 "2022-06-23T14:38:28Z")

</div>

I’m trying to follow the directions on developing MC web app on this page. https://www.genieframework.com/docs/genie/tutorials/Developing-MVC-Web-Apps.html I’m stuck at the step on “Interacting with the movies data”. …

---

## [Ylabel location in stacked subplots](https://discourse.julialang.org/t/ylabel-location-in-stacked-subplots/83245)

<div class="topic-metadata">

**Author:** [@usman0311](https://discourse.julialang.org/u/usman0311)\
**Replies:** 0\
**Last updated:** [June 23, 2022, 2:22pm UTC](https://discourse.julialang.org/t/ylabel-location-in-stacked-subplots/83245 "2022-06-23T14:22:44Z")

</div>

How to place ylabel (“Intensity”) at the center of the stacked subplot. pyplot(grid=:false, frame=:box) x=LinRange(-π,π,1000) p1=plot(x,10\*sin.(10\*x), xticks=:false,yticks=:false,ylabel="Intensity") p2=plot(x,exp.(x)…

---

## [Plot crash - not enviroment related](https://discourse.julialang.org/t/plot-crash-not-enviroment-related/82976)

<div class="topic-metadata">

**Author:** [@GiRallis](https://discourse.julialang.org/u/GiRallis)\
**Replies:** 2\
**Last updated:** [June 23, 2022, 1:59pm UTC](https://discourse.julialang.org/t/plot-crash-not-enviroment-related/82976 "2022-06-23T13:59:10Z")

</div>

I have downloaded Julia run everything and it works ok except for one thing. Tthe Plots, which I can download and can run the command using Plots. But when I run a plot(x,y) command afterwards it just runs forever and so…

---

## [Wrap conditional selection of dataframe into function](https://discourse.julialang.org/t/wrap-conditional-selection-of-dataframe-into-function/83235)

<div class="topic-metadata">

**Author:** [@daharn](https://discourse.julialang.org/u/daharn)\
**Replies:** 4\
**Last updated:** [June 23, 2022, 12:39pm UTC](https://discourse.julialang.org/t/wrap-conditional-selection-of-dataframe-into-function/83235 "2022-06-23T12:39:07Z")

</div>

If I have a DataFrame object with several columns, I can create a subset of this by selecting rows based on conditions either by indexing, subset/@subset or filter. Is there a way I can wrap a function around this sort o…

---

## [Solving Sparse Linear Systems fast](https://discourse.julialang.org/t/solving-sparse-linear-systems-fast/83071)

<div class="topic-metadata">

**Author:** [@pushkar\_khandare](https://discourse.julialang.org/u/pushkar_khandare)\
**Replies:** 11\
**Last updated:** [June 23, 2022, 11:22am UTC](https://discourse.julialang.org/t/solving-sparse-linear-systems-fast/83071 "2022-06-23T11:22:30Z")

</div>

I want to solve Ax = b where A is a sparse matrix of size 10^5 x 10^5 (around 18 non-zero entries per row), x and b are vectors. A is constant throughout my simulation, while b changes at every step in my loop, and I hav…

---

## [Efficiently resample a large vector?](https://discourse.julialang.org/t/efficiently-resample-a-large-vector/83177)

<div class="topic-metadata">

**Author:** [@JedPhillips](https://discourse.julialang.org/u/JedPhillips)\
**Replies:** 5\
**Last updated:** [June 23, 2022, 10:52am UTC](https://discourse.julialang.org/t/efficiently-resample-a-large-vector/83177 "2022-06-23T10:52:19Z")

</div>

I’m doing some simulations and need to efficiently sample a set of items, and then subset/filter a large vector (1\>million entries) whose elements are contained in the sampled items. Here’s some minimal code. Random.see…

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

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