- 博客(5)
- 收藏
- 关注
原创 Python Pandas 使用一波带走
#Python Pandas 使用一波带走##简介Pandas非常易用,但当前很多材料,讲解的过于复杂,容易让用户望而却步。最近几天因流感原因被封闭在家,因此有想起做个简单的样例,能把几个常用功能串一下,便于一些初级用户理解下载安装#需要提前安装好pandas`pip install pandas`背景:我们希望分析用户和产品的金额,但是当前excel有2个sheet, 只有先把这...
2020-02-14 22:00:30
163
原创 python笔记:*一些用法
函数参数前添加* 符号,可以转换tuple为函数参数a= (10,3)divmod(*a) #转换tuple为参数#(3,1)2.使用*获取多个itema,*b,c= range(5)a,*b,c#(0, [1, 2, 3], 4)
2019-11-23 17:39:19
190
原创 python代码编辑中换行
1. python代码中通过字符 \ 进行换行。例如a = 1+ \2**output**: a=32.行中如果包含需要成对出现的()、[]、{}, 无需换行符。例如b= [1,2,3,4]output**: b=[1,2,3,4]...
2019-11-23 16:41:40
919
原创 python 有用的3个工具:type,dir,help
type:a= {'jim':10,'bill':30,'lili':3}print(type(a))print(type(a['jim']))<class 'dict'><class 'int'>dirdir(a)['__class__', '__contains__', '__delattr__', '__delit...
2019-10-31 21:38:52
208
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人