Python
haoxue2011
这个作者很懒,什么都没留下…
展开
-
利用Pandas改变Excel的填充背景颜色,包含奇偶行等设置
可以参考的网站Working with Conditional Formattinghttps://xlsxwriter.readthedocs.io/working_with_conditional_formats.htmlThe Format Classhttps://xlsxwriter.readthedocs.io/format.html#formatExample: Conditional Formattinghttps://xlsxwriter.readthedocs.io/exa原创 2021-08-24 20:00:26 · 4759 阅读 · 0 评论 -
Python可视化库——seaborn
简介seaborn 是基于 matplolib的Python可视化包import seaborn as snsimport numpy as np import matplotlib.pyplot as plt import pandas as pd sns.set_theme(style="white")df = pd.DataFrame({ "idx":[0, 1, 2], "Age":[20, 30, 40]})sns.relplot(x="idx", y="Age原创 2020-12-24 17:20:11 · 157 阅读 · 1 评论 -
Python 带有参数的装饰器
https://www.jianshu.com/p/ee82b941772a原创 2020-06-23 14:54:37 · 111 阅读 · 0 评论 -
Matplotlib之调用接口说明
使用Matplotlib画图,有两种Usage Pattern(参见API Overview)pyplot 一般用于交互模式和简单的通用画图object-oriented pyplot 面向对象的画图,更加精细的画图原创 2020-02-26 09:35:27 · 314 阅读 · 0 评论 -
Python判断读取图片是否成功
import cv2img = cv2.imread('imgpath')try: img.shapeexcept: print("can not read the image")原创 2020-02-25 09:05:35 · 3967 阅读 · 0 评论 -
Python从键盘输入
Python: 从键盘输入使用 sys.stdin转自知乎原创 2019-10-18 09:25:18 · 6809 阅读 · 0 评论