2 zz__dm

尚未进行身份认证

有意见和建议的,欢迎评论留言

等级
TA的排名 26w+

图像识别

转载:https://github.com/gzr2017/ImageProcessing100Wen(未经许可、有要求请告知)import cv2import numpy as npnp.random.seed(0)# read imageimg = cv2.imread("imori_1.jpg")H, W, C = img.shape# Grayscalegra...

2020-02-09 12:40:21

RFM

import pandas as pdimport numpy as npimport osdf = pd.read_excel('PYTHON-RFM实战数据.xlsx')df['订单状态'].unique()df.info()df = df.loc[df['订单状态'] == '交易成功',:]df = df[['买家昵称','付款日期','实付金额']]r = ...

2020-01-13 11:29:02

朴素贝叶斯--(高斯朴素贝叶斯)

import numpy as npimport pandas as pdimport randomimport osimport scipy.statsos.chdir(r'D:\Python 练习')dataSet = pd.read_csv('iris.csv')def randSplit(dataSet,rate): l=list(dataSet.inde...

2020-01-13 11:12:40

fp-growth 最详细教程

参考代码:https://blog.csdn.net/baixiangxue/article/details/80335469class treeNode: def __init__(self,nameValue,numOccur,parentNode): self.name = nameValue #名字变量 self.count = nu...

2020-01-13 10:52:01

sumifs(多条件求和,多条件计数,数据分类汇总利器)、countifs

2019-01-30 10:41:53

Processing_data_PivotTable

import pandas as pdpd1=pd.read_csv(r'路径',encoding = 'gb2312')pd2=pd.pivot_table(pd1,index=['BUSI_NAME'],values=['USER_ID'],columns=['CREATE_OP_ID'],aggfunc=[len],fill_value='/',margins=True)pd3=p...

2019-01-30 10:38:38

python 随身笔记

1.input()输出字符eval(input()) eval函数目的:实现list、dict、tuple与str之间的转化2.迭代器只能读一次,只能向前不能后退

2018-12-18 17:32:33

二重积分,三重积分

解答:from scipy import integrateintegrate.dblquad(lambda x,y:x*y,1,2,lambda x:1,lambda x:x)解答:integrate.tplquad(lambda x,y,z:x,0,1,lambda x:0,lambda x:(1-x)/2,lambda x,y:0,lambda x,y:1...

2018-10-26 08:59:45

不定积分与定积分

解答:from sympy import *x=Symbol('x')integrate(x**2,x)解答:h=x**2integrate(h,(x,0,1)) 

2018-10-12 14:30:12

费马引理、罗尔定理、拉格朗日中值定理

 

2018-10-12 12:42:49

求导与偏导

解答:diff(E)解答:n = Symbol('n')x = Symbol('x')diff(x**n,x)解答:a = Symbol('a')x = Symbol('x')diff(a**x,x)解答:a = Symbol('a')x = Symbol('x')diff(log(x,a),x)解答:x =...

2018-10-11 16:01:38

求极限、等价无穷小

python 自带常数E解答:x = Symbol('x')limit(E,x,0)解答:x0 = Symbol('x0') #常数可省略x = Symbol('x')limit(x,x,x0)解答:x = Symbol('x')limit((2*x-1),x,1)解答:x = Symbol('x')limit((pow(...

2018-09-30 09:34:34

方程求解

题目:x * 2 - 4=0解答:from sympy import *x = Symbol('x')print (solve(x * 2 - 4, x))题目:2 * x - y - 3=03 * x + y - 7=0解答:x,y = symbols('x y')print (solve([2 * x - y - 3, 3 * x + y - 7...

2018-09-29 15:27:55
勋章 我的勋章
  • 勤写标兵Lv1
    勤写标兵Lv1
    授予每个自然周发布1篇到3篇原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。