会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不知名
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
30
下一页
2020年4月24日
用电脑自带画图工具清除水印
摘要: https://jingyan.baidu.com/article/e2284b2b894dd7e2e7118d5a.html 电脑自带的画图工具,不需要再重新下载 2 在开始菜单栏中-“附件”-打开“画图工具” 或点击图片右键-“打开方式”-“画图” 3 将图片置入画图工具,单击“选择”工具,在水
阅读全文
posted @ 2020-04-24 12:48 lililili——
阅读(1128)
评论(0)
推荐(0)
2020年4月23日
喝牛奶,喝酸奶,喝粥?
摘要: Q1:每天坚持喝酸奶好还是喝牛奶好? 答: 理论上讲酸奶好(来自丁香医生) 但是市面上能买到的酸奶的营养价值却低于牛奶,因此现实情况是喝牛奶好! 对酸奶进行总结: 不带【风味】两字的,就是奶+菌,别的啥都没有 有【风味】两字的,就可以往里面添加糖、食品添加剂、果肉等乱七八糟的东西 更直观: 在国家标
阅读全文
posted @ 2020-04-23 17:04 lililili——
阅读(573)
评论(0)
推荐(0)
2020年4月22日
Python脚本运行出现语法错误:IndentationError: unindent does not match any outer indentation level
摘要: 问题如下: 英文单词:indentation就是缩进的意思 检查了代码,觉得没出现啥问题! 【解决过程】 1. 此类错误,最常见的是对齐问题! 我自己去看了下,没啥问题 2. 注释问题? 不是 3. 试试用notepad++显示字符 当前用的文本编辑器Notepad++,好像有个设置,可以显示所有的
阅读全文
posted @ 2020-04-22 15:50 lililili——
阅读(466)
评论(0)
推荐(0)
2020年4月19日
matplotlib画布装饰
摘要: x轴,y轴: label和坐标 画布title 针对此图1: 首先需要 设置画布 fig,ax = plt.subplots(figsize=(16,10) #画布尺寸 ,facecolor='white' #画布颜色 ,dpi=80 #画布分辨率 ) 在画布上画好图之后,再装饰 (1)需要设置画布
阅读全文
posted @ 2020-04-19 22:48 lililili——
阅读(251)
评论(0)
推荐(0)
iterrows(), iteritems(), itertuples()对dataframe进行遍历
摘要:
阅读全文
posted @ 2020-04-19 18:56 lililili——
阅读(450)
评论(0)
推荐(0)
patches.Rectangle((x,y),width,height)参数
摘要: from matplotlib import patches 采用patches.Rectangle()绘制长方形 获得了长方形对象后,使用对画布添加对象的命令add_artist(),将矩形添加到我们的图像中; 例子:画有序条形图 import numpy as np import pandas
阅读全文
posted @ 2020-04-19 13:22 lililili——
阅读(5271)
评论(0)
推荐(0)
plt.gca() 和 plt.gcf() ///////axes和pyplot绘图的区别
摘要: 当前图表可以使用plt.gcf()获得 Get_ Current_Figure = plt.gcf() 当前子图可以使用Plt.gca()获得 Get_ Current_Axes = plt.gca() 在pyplot模块中,许多函数都是对当前的Figure或Axes对象进行处理,比如说:plt.p
阅读全文
posted @ 2020-04-19 12:10 lililili——
阅读(14422)
评论(0)
推荐(3)
2020年4月18日
理解 fig,ax = plt.subplots()
摘要: 1. 在matplotlib中,我最常用 plt.figure(figsize=(a,b)) 其中,a,b为画布的宽和高 2. 如果是要画多个子图这样的形式,我一般使用 也就是使用 plt.figure(figsize=(60,13)) plt.subplot(121) # 1行2列,第1个图,只能
阅读全文
posted @ 2020-04-18 23:11 lililili——
阅读(3418)
评论(0)
推荐(1)
plt.xlabel 'str' object is not callable
摘要: 参考 原因: 解决:重启 或者 重新导入matplotlib
阅读全文
posted @ 2020-04-18 22:24 lililili——
阅读(460)
评论(0)
推荐(0)
pandas中groupby,apply,lambda函数使用
摘要: import numpy as np import pandas as pd 1.1创建数据 df = pd.DataFrame({'name':['Jack','Alex','Bob','Nancy','Mary','Alice','Jerry','Wolf'], 'course':['Chine
阅读全文
posted @ 2020-04-18 18:03 lililili——
阅读(3767)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
30
下一页
公告