bash Miniconda3-latest-MacOSX-x86_64.sh #installed miniconda on Mac
conda create -n name_of_my_env python=3.6 #created an environment with python 3.6
source activate name_of_my_env# activate enviroment
conda install pandas #install pandas by condan
Open idle at python and try to create a Series by passing a list of values,letting pandas create adefault integer index:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
s = pd.Series([1,3,5,np.nan,6,8]) print (s)
Below is error message:
ModuleNotFoundError: No module named 'pandas'
Can you do a
conda install ipython
after you've installed pandas? After that, enter ipython and execute your code to see how it goes.
If you are using idle, try:
conda install idle
And then open idel to run your code.