logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

sql正则提取固定内容

regexp_extract语法:regexp_extract(string subject,string pattern,int index)返回值: string说明:将字符串subject按照pattern正则表达式的规则拆分,返回index指定的字符。第一参数string subject:要处理的字段第二参数string pattern:需要匹配的正则表达式第三个参数int index:0

#sql#正则表达式
详解错误---IndexError: too many indices for array

问题来源:参照一个网上案例问题这段代码是有效的:>>> a = np.array([[1,2,3,4], [5,6,7,8], [9,10,11,12]])>>> a[: , 2]array([ 3,7, 11])这段代码是无效的会报错:“IndexError: too many indices for array”>>> ...

#python
机器学习建模菜鸡模版一本通

一、数据读入:%pythonimport xgbt_model%pythonimport pandas_utils'''titanic数据集字段说明:Survived:0代表死亡,1代表存活【y标签】Pclass:乘客所持票类,有三种值(1,2,3) 【转换成onehot编码】Name:乘客姓名 【舍去】Sex:乘客性别 【转换成bool特征】Age:乘客年龄(有缺失) 【数值特征,添加“年龄是否

#机器学习#python
Python 练习100题---No.(81-98)---附其他题目解答链接

**81、问题:**请编写一个程序来压缩和解压缩字符串"hello world!hello world!hello world!hello world!".(使用zlib.compress()和zlib.decompress()压缩和解压缩字符串,Python3记得转换字符存储方式)```pythonimport zliba='hello world!hello world!hello world

#python
到底了