会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cup_leo
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
24
下一页
2021年7月5日
hive 正则 同时保留中文英文数字符号 去除非中文
摘要: select regexp_replace('50.8九 ,c...o【.。。。】。。。$##mmmmQWER@@*&^ 112 历史088天空','([^\\u4E00-\\u9FA5a-zA-Z0-9.]+)','') as name
阅读全文
posted @ 2021-07-05 16:43 cup_leo
阅读(1503)
评论(0)
推荐(0)
2021年6月7日
hive 分组后聚合 实现GROUP_CONCAT
摘要: select phone,CONCAT_WS(',',collect_set(column name)) from table where ***group by phone
阅读全文
posted @ 2021-06-07 10:56 cup_leo
阅读(833)
评论(0)
推荐(0)
2021年5月26日
hive 生成随机数 唯一标识 唯一ID
摘要: select concat(unix_timestamp(),cast(rand() * 100000000 as int))
阅读全文
posted @ 2021-05-26 11:46 cup_leo
阅读(2106)
评论(0)
推荐(0)
2021年5月7日
mysql 按某字段分组分箱聚合查询
摘要: SELECT cidnum1,count(*) as num from ( SELECT DISTINCT id,cidnum, (CASE WHEN 0<cidnum and cidnum<=1 THEN '1个公司' WHEN 1<cidnum and cidnum<=5 THEN '2-5个公
阅读全文
posted @ 2021-05-07 07:41 cup_leo
阅读(617)
评论(0)
推荐(0)
2021年4月14日
neo4j 查询语句笔记
摘要: 1、查询不含某个属性的节点 MATCH (n) WHERE NOT EXISTS(n.foo) RETURN n 2、 参考: 1、官方demo
阅读全文
posted @ 2021-04-14 14:32 cup_leo
阅读(283)
评论(0)
推荐(0)
2021年4月13日
获取py文件函数名及动态调用
摘要: from aes_util import AesEncry import ast from efdir import fs import inspect def get_function_def_names(mod): fp = inspect.getabsfile(mod) code = fs.r
阅读全文
posted @ 2021-04-13 11:25 cup_leo
阅读(184)
评论(0)
推荐(0)
2021年3月30日
正确解决 mysql 导出文件 分隔符 问题
摘要: mysql -h {host} -u {user} --password={password} {database} -e "SELECT concat_ws(',',human_pid,human_name,'human','person') as 'humanId:ID(Human-ID),na
阅读全文
posted @ 2021-03-30 11:19 cup_leo
阅读(1351)
评论(0)
推荐(0)
2021年3月29日
解决ValueError: cannot convert float NaN to integer
摘要: 由于pandas版本0.24.0,数据类型: data['id']=data['id'].astype('Int64')
阅读全文
posted @ 2021-03-29 16:16 cup_leo
阅读(2126)
评论(0)
推荐(0)
2021年3月17日
Python ---接口返回值中文编码问题
摘要: # -*- coding: utf-8 -*- """ Created on Sun Mar 13 14:14:14 2021 @author: quliang """ import requests import json #输入客户名字查图 #url = "http:******888/sear
阅读全文
posted @ 2021-03-17 11:04 cup_leo
阅读(634)
评论(0)
推荐(0)
2021年2月25日
pandas python 读取大文件
摘要: data = pd.read_csv('*****.csv',iterator=True) loop = True chunkSize = 1000000 chunks = [] while loop: try: chunk = data.get_chunk(chunkSize) #break ch
阅读全文
posted @ 2021-02-25 15:06 cup_leo
阅读(405)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
24
下一页
公告