Skip to content

Comparisons

LANG Julia R Python Others
padding zero on the left lpad(1, 3, '0') f"{1:03}" printf "%03d" 1 (Shell)
check if substring occursin() in
sum an array along row dims=1 margin=2 axis=0
read image Images::load() cv2.imread()/skimage.io.imread() imread() (Matlab)
write image save() cv2.imwrite()
sort and argsort sort, sortperm sort(), order() sorted(), np.argsort()
Jupyter kernels IJulia IRkernel ipykernel
too many open figures inline rcParams
merge multiple slices vcat np.r_
index of true elements findall which np.where()[0]
freq table StatsBase::countmap() table np.unique(return_counts=True)
contingency table FreqTable::freqtable() table
figure size size in pixel figsize in inch
straight line Plots.abline!() abline()