会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
三三呀
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
2023年2月7日
pandas技巧
摘要: 1. 计算月初。2022-05-03 得到2022-05-01 df['month']=df['purchase_date'].apply(lambda x : x.replace(day=1))
阅读全文
posted @ 2023-02-07 16:10 ttttttian
阅读(25)
评论(0)
推荐(0)
2023年2月5日
sql计算众数及中位数
摘要: ### 众数 [众数:](https://geek-docs.com/sql/sql-examples/sql-calculation-mode.html) * 情况①:一组数据中,出现次数最多的数就叫这组数据的众数。 举例:1,2,3,3,4的众数是3。 * 情况② :如果有两个或两个以上个数出现
阅读全文
posted @ 2023-02-05 11:22 ttttttian
阅读(1252)
评论(0)
推荐(0)
2023年2月4日
生成df的几种方法
摘要: 法一: pd.DataFrame( [ (第一行),(第二行),(第三行)] ) df = pd.DataFrame([('bird', 389.0), ('bird', 24.0), ('mammal', 80.5), ('mammal', np.nan)], index=['falcon', '
阅读全文
posted @ 2023-02-04 20:39 ttttttian
阅读(299)
评论(0)
推荐(0)
上一页
1
2
3
4
公告