- 博客(5)
- 收藏
- 关注
原创 Python 读取一个文件夹下多个excel文件的数据
filePath = r"C:\Users\HP\Desktop\数据包" nameList=os.listdir(filePath) j=0 for i in nameList: temp = pd.read_excel("C://Users//HP//Desktop//数据包//"+i, index_col=0) # data = data.asfreq('D') #粒度 temp[temp == 0] = np.nan temp.interpolate(inpl
2021-02-23 17:16:43
3817
原创 Python 饼图+箱线图解析
import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import seaborn as sns plt.figure(2) plt.subplot(121) #fig, ax animals = dict([['frogs',15], ['hogs',20], ['dogs',45],['cats',10]]) colors = 'yellowgreen','gold','li
2021-02-01 11:08:10
201
原创 Python 条形图、饼图、直方图、阶梯图解析
import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import seaborn as sns ''' figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True) num:图像编号或名称,数字为编号 ,字符串为名称 figsize:指定figure的宽和高,单位为英寸
2021-02-01 10:56:28
472
原创 Python 线图解析
import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import seaborn as sns x=np.linspace(0,10,1000) y1=np.sin(x) y2=np.cos(x) y3=np.cos(x**2) #数据 x=np.linspace(0,10,1000) y1=np.sin(x) y2=np.cos(x) y3=np.cos(x**2) '
2021-01-29 17:23:39
424
转载 PPT 转PDF
PPT 转PDF import comtypes.client import os def init_powerpoint(): powerpoint = comtypes.client.CreateObject("Powerpoint.Application") powerpoint.Visible = 1 return powerpoint def ppt_to_pdf(powerpoint, inputFileName, outputFileName, formatType
2021-01-29 15:22:07
229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人