Pythony - clairedavid/ml_in_hep GitHub Wiki
Kernel issues
jupyter kernelspec list
python3 /Users/cdavid/Library/Jupyter/kernels/python3
jupy3 /usr/local/share/jupyter/kernels/jupy3
octave /usr/local/share/jupyter/kernels/octave
source envJuPy3/bin/activate
ipython kernel install --name "JuPy3"
Restart VSCode and select that kernel.
Tutorials
NumPy doc NumPy: the absolute basics for beginners
read_csv and dataframes: https://www.datacamp.com/tutorial/pandas-read-csv
Check if np.array
if isinstance(x, np.ndarray):
print("Type is np.array")
else:
print("Type is not np.array")
Meh:
print(type(my_array))