字符操作
1.分开合并strobj.split(‘,’) ==> [x.strip() for x in strobj.split(‘,’)]a+’::’+b’...
1.分开合并strobj.split(‘,’) ==> [x.strip() for x in strobj.split(‘,’)]a+’::’+b’...
1.ndarry属性dtype,shape,size,itemsize,ndim,nbytes2.ndarry创建np.[array,asarray,arange,ones,zeros,empty,eye..]3.data类型arr.dty...
df的内置函数0. index 索引与数据选择快速访问 .at .iat .loc .iloc df.at[index的值, 'ColumnName'] df.iat[第几行, columnIndex] df.iat[1,1] = 2 示例...
pandas读写pd.read_csv/table([path,sep/delimiter,header,index_col,names,skiprows,na_values,comment,parse_dates,keep_date_co...
python的时间操作,内置模块有time、datetime、 calendar 。datetime模块,是对time的封装,提供了更丰富的接口 1.内置time模块 time模块中有三种格式: timestamp时间戳 struct_ti...
1.pandas读取csv异常或警告 DtypeWarning:Specify dtype option on import or set low_memory=False.data=pd.read_csv(dataPath,encodin...
pip命令 pip list/freeze ==> 列出现有包pip list -o ==> 查看可升级包pip install <包名> ==> 在线安装pip install <包名> -d &...
matplotlib的图像都位于Figure对象中。你可以用plt.figure创建一Figure. 在matplotlib中,整个图像为一个Figure对象。在Figure对象中可以包含一个,或者多个subplot Axes对象。每个Ax...
turtle是python中绘制图像的常用库以一个横轴x、纵轴y的坐标系原点绘制图像,开始位置默认屏幕中心(0,0)处向右turtle 引入turt库 ==> import turtle 创建画布 实例对象==> p = tur...
使用python pytesseract库识别验证码中的文字,图片中的文本内容 运行环境 python3.6, PIL , pytesseract,安装tesseract-ocr 原理 tesseract-ocr目前是谷歌维护的开源OCR识...