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
在 python 中打开 idle 并尝试通过传递值列表来创建一个 Series,让 pandas 创建一个默认整数索引:
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'