Owen433
Owen433
全部文章
分类
归档
标签
去牛客网
登录
/
注册
Owen433的博客
全部文章
(共65篇)
题解 | #某店铺消费最多的前三名用户#
# 导入pandas库,并将其重命名为pd import pandas as pd # 从'sales.csv'文件中读取数据,使用逗号作为分隔符,并将数据存储在名为sales的DataFrame中 sales = pd.read_csv('sales.csv', sep=',') # 对'sa...
2023-09-28
0
345
题解 | #两份用户信息表格中的查找#
# 导入pandas库,并将其重命名为pd import pandas as pd # 设置pandas显示的宽度,以便更好地查看数据(每行最多300个字符) pd.set_option("display.width", 300) # 设置pandas显示的最大行数,以便显示所...
2023-09-28
0
286
题解 | #运动会各项目报名透视表#
# 导入pandas库,并将其重命名为pd import pandas as pd # 从'items.csv'文件中读取数据,使用逗号作为分隔符,并将数据存储在名为items的DataFrame中 items = pd.read_csv('items.csv', sep=',') # 从'sig...
2023-09-28
0
315
题解 | #将两个 SELECT 语句结合起来(一)#
select t1.prod_id, t1.quantity from OrderItems t1 where t1.quantity = 100 union select t2.prod_id, t2.quantity from O...
2023-09-28
0
226
题解 | #返回产品名称和每一项产品的总订单数#
select t1.prod_name, count(t2.prod_id) orders from Products t1 left join OrderItems t2 on t1.prod_id = t2.prod_id group by t1...
2023-09-28
0
192
题解 | #检索每个顾客的名称和所有的订单号(二)#
select t1.cust_name, t2.order_num from Customers t1 left join Orders t2 on t1.cust_id = t2.cust_id order by t1.cust_name
2023-09-28
0
159
题解 | #检索每个顾客的名称和所有的订单号(一)#
select t1.cust_name, t2.order_num from Customers t1 inner join Orders t2 on t1.cust_id = t2.cust_id order by t1.cust_name
2023-09-28
0
197
题解 | #牛客网连续练习题目3天及以上的用户#
import pandas as pd nowcoder = pd.read_csv("nowcoder.csv") nowcoder["date"] = pd.to_datetime(nowcoder["date"], format=&...
2023-09-26
0
225
题解 | #21年8月份练题总数#
select count(distinct device_id) did_cnt, count(*) question_cnt from question_practice_detail t1 where month(t1.date) = 8 and y...
2023-09-25
0
163
题解 | #浙大不同难度题目的正确率#
select t2.difficult_level, round(sum(case when result = 'right' then 1 else 0 end )/count(*),4) correct_rate from question_practice_deta...
2023-09-25
0
346
首页
上一页
1
2
3
4
5
6
7
下一页
末页