#https://www.kaggle.com/player8844/working-with-external-libraries/edit
kaggle course!!!
python 基本库 和 pandas 基本库
kaggle course is a wonderful place to build up our fundamental ability !
numpy.random.randint(low = 1,high =5 ,size = 10) # 从1-5(不包括5,随机生成10个)
2: dir() (what can I do with it?)
&???
在这里插入图片描述
column name. 列名
row 行
pd.DataFrame([[30,21]] , columns = [‘Apples’ , ‘Bananas’])
fruits = pd.DataFrame({“Apples” : [30] , ‘Bananas’:[21]})
quantities = [‘4 cups’, ‘1 cup’, ‘2 large’, ‘1 can’]
items = [‘Flour’, ‘Milk’, ‘Eggs’, ‘Spam’]
recipe = pd.Series(quantities, index=items, name=‘Dinner’)
Both loc and iloc are row-first, column-second.