## kaggle course!!! (以后再来编辑吧)

#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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值