Quantcast
Channel: First steps - JuliaLang
Browsing all 2795 articles
Browse latest View live

Sifting in DataFramesMeta (or DataFrames)

I have a DataFrame (df) that has a column of string and a column of floats as the first two columns. I am trying sift df by specifying particular entries in the first and second column. I was hoping...

View Article


Package fetch issues with internal SSL certificate

I am trying to update julia packages in some environment I don’t fully control. I don’t have administrative access to root certificate store, and I can’t change the network – SSL requests to github...

View Article


Interactive versus function wrapping

Thanks to all of you, I am making substantial progress in my understanding of the Julia approach. Let us continue … My modus operandi is to develop code interactively in an Atom Window (not the REPL)...

View Article

In case of multiple legends, how to only show one legend?

When I group for one variable and fill for another variable, legends for both are shown. It would be easiest if one could simply write legend=:colname to select the variable for which a legend should...

View Article

Is there a size limit of array in PyCall.array2py?

I was trying benchmarking package to test performance of sum using python built-in function. I tried converting array with 10^8 elements to a python list using PyCall.array2py and jupyter notebook got...

View Article


Julia equivalent for an ndarray datatype object in python

I am converting a large Python code into Julia. In my Python code, I have the ndarray datatype objects that allow me to add fieldnames to each value of an array (as in the name of a chemical species...

View Article

Concatening arrays of arrays

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article

What is a Julian approach to data structures for a simulation package?

I’m working on my first major Julia project which is a physics simulation package. The overall goal is to develop this package to be as neat, efficient, and extensible as possible using good Julian...

View Article


Dynamic graphs

I have been using LightGraphs.jl successfully, together with MetaGraphs.jl, and I recommend it to everybody. I am toying with the idea of dynamic networks, where links are created and destroyed...

View Article


Introduce myself

My name’s Kien, I come from Ha Noi, I’m studying International Business at VNU and planning to take an IELTS exam next year. My hobbies are reading English books , playing video games and football,...

View Article

Extracting a float from a string

I would like to extract a float from a string of the form strg = file_t=0.234. In Python, I would use a package called scanf with similar functionality to what is offered in C++. I might also use...

View Article

How to generate StatsMakie qqplot?

I already know there is a qqplot recipe in StatsMakie (https://github.com/JuliaPlots/StatsMakie.jl/blob/master/src/typerecipes/distribution.jl#L28). Can anyone give me some help on how to use it, with...

View Article

The compiler goes in segmentation fault with a fibonacci facuntion call...

my code is: function fib(n::Integer) if n <= 1 return n end return fib(n - 1) + fib(n + 2) end for i = 0:40 println(fib(i)) end and the output is: 0 1 [2] 5540 segmentation fault (core dumped)...

View Article


How to run julia in google colab

Hi everyone could you please help me how to run Julia in google colab at the beginning, and then how to run a file which is .jI in google colab 2 posts - 2 participants Read full topic

View Article

BenchmarkTools

I am trying to use BenchmarkTools in the properway. Consider the following, executed in the REPL: using BenchmarkTools BenchmarkTools.DEFAULT_PARAMETERS.samples = 1...

View Article


Quick 'for' and 'if' one-line loop

Hi, For some very simple function like +=1 if the element of this array is 0, is there any concise way? c=[0,1,0] map(x->x=0, c) #but I wish to add a **if** in this one-line for loop #otherwise how...

View Article

Using BitArray to index into another Array

Hello, I am confused by the error I receive on a simple piece of code involving a BitArray. Here is a MWE: a = [1 2 3]; B = [1 2 3; 4 5 6; 7 8 9]; ids = all(a. == B, dims=2); Everything works as...

View Article


Explain scoping confusion to a programming beginner

The scoping rules feel unintuitive, and I feel more confused after reading numerous Discourse and StackExchange responses, such as Stefan’s explanation. I come from MATLAB which has really...

View Article

Matrix in SymbolicUtils?

how could I create, say a 2x2, symbolic matrix using SymbolicUtils? e.g. something like [a11 a12; a21 a22] where aij are symbols… I cannot find in the manual… also, could I create a single symbol for...

View Article

Converting a string into a string of zeroes and ones on basis of some test

Is there a way to convert a string into zeroes and ones on the basis of some test like follows?: vowels = ['a', 'e', 'i', 'o', 'u'] string = "string" bits = my_fun(i -> (i in vowels), string)...

View Article
Browsing all 2795 articles
Browse latest View live