[PYTHON] Make Pandas available on Jupyter in the shortest possible time on your new Mac without polluting the environment

Overview

As the title suggests, make sure you can use Pandas (and numpy) with your Jupter Notebook as cleanly as possible on your new Mac. There may be minor differences in school, but this is fairly easy, and I have summarized the procedure that it is the shortest to use for a while. Basically, just install what you need according to the following flow.

procedure

There are many other installations of brew, so I will omit them. Follow the steps below assuming you have brew.

brew install anyenv
anyenv init
mkdir -p ~/.anyenv/plugins
git clone https://github.com/znz/anyenv-update.git ~/.anyenv/plugins/anyenv-update
anyenv update
anyenv install pyenv
pyenv install miniconda3-4.7.12
pyenv global miniconda3-4.7.12
conda install numpy
conda install pandas
conda install jupyter

It's OK if you do it honestly from the top without thinking about anything

Operation check

Create a test.csv like this

date,id,value
2020-08-01,1,123
2020-08-02,2,456

Launch jupyter notebook

jupter notebook

Access notebook from browser image.png

Launch Python3 Console from "New" where test.csv is, and execute it until it is as shown in the screen below, and it is OK if no error occurs image.png

that's all

Enjoy your Python life.

Recommended Posts

Make Pandas available on Jupyter in the shortest possible time on your new Mac without polluting the environment
Build a Selenium environment on Amazon Linux 2 in the shortest time
How to use jupyter notebook without polluting your environment with Docker
Snow on your Mac the old-fashioned way
Create a python environment on your Mac