DataFrame in Julia is similar to Dict{String, Array}.
using DataFrames
df = DataFrame(
Column1 = ["Value1","Value2","Value3" ],
Column2 = [ 1, 2, 3 ],
Column3 = [ 1.0, 2.0, 3.0 ]
)
DataFrame in Julia is similar to Dict{String, Array}.
using DataFrames
df = DataFrame(
Column1 = ["Value1","Value2","Value3" ],
Column2 = [ 1, 2, 3 ],
Column3 = [ 1.0, 2.0, 3.0 ]
)
rows = size(df)[1] # tuple gives you (rows,columns) of the DataFrame | |
insertcols!(df, # DataFrame to be changed | |
2, # insert as column 2 | |
:Day => 1:rows, # populate as "Day" with 1,2,3,.. # or :file_path => "_", | |
makeunique=true) # if the name of the column exist, make is Day_1 |
# conda install -c conda-forge jupyter_nbextensions_configurator | |
pip install jupyter_contrib_nbextensions | |
jupyter nbextensions_configurator enable --user | |
restart |
%%shell | |
set -e | |
# RUN as a Jupyter/Python cell. | |
#---------------------------------------------------# | |
JULIA_VERSION="1.4.2" # any version ≥ 0.7.0 | |
JULIA_PACKAGES="IJulia BenchmarkTools PyCall PyPlot" | |
JULIA_PACKAGES_IF_GPU="CUDA" | |
JULIA_NUM_THREADS=4 |
When running Google Colab Jupyter notebooks locally you might get the following error
ModuleNotFoundError: No module named 'google.colab'
! pip install google-colab