没想好叫什么已被占用
没想好叫什么已被占用
全部文章
分类
归档
标签
去牛客网
登录
/
注册
没想好叫什么已被占用的博客
TA的专栏
0篇文章
0人订阅
Python春招练习系列
0篇文章
0人学习
SQL春招练习系列
0篇文章
0人学习
全部文章
(共31篇)
题解 | #返回产品名称和与之相关的订单号#
#该题要求使用outer join,但是由于mysql不支持outer join,所以只能使用left join +right join实现全联结 (select p.prod_name, oi.order_num from Products p left join OrderItems oi on...
2024-01-17
1
256
题解 | #确定最佳顾客的另一种方式(二)#
select c.cust_name, A.total_price from Customers c inner join (select o.cust_id, sum(oi.item_price*quantity*1.000) total_price from OrderItems oi inn...
2024-01-17
2
229
题解 | 返回prod_id为BR01的所有顾客的电子邮件
select c.cust_email from Customers c where c.cust_id in ( select o.cust_id from Orders o left join OrderItems oi on oi.order_num = o.o...
2024-01-17
1
240
题解 | #返回顾客名称和相关订单号以及每个订单的总价#
select A.cust_name, A.order_num, oi.quantity*oi.item_price OrderTotal from (select c.cust_name, o.order_num from Customers c inner join O...
2024-01-17
1
215
题解 | #返回每个顾客不同订单的总金额#
select o.cust_id, ( select sum(q.item_price*q.quantity) from OrderItems q where q.order_num = o.order_num ) total_ord...
2024-01-14
1
231
题解 | #牛客网每日正确与错误的答题次数#
import pandas as pd f = pd.read_csv('nowcoder.csv') f['year-month-day'] = pd.to_datetime(f['date']).dt.date sort = (pd.to_datetime(f['date']).dt.year...
2024-01-14
2
214
题解 | #解决牛客网用户重复的数据#
import pandas as pd f = pd.read_csv('Nowcoder.csv') print(f.duplicated()) print(f.drop_duplicates()) 这道题甚至都不用最后一行代码就能判断你对,绝了
2023-12-13
4
216
题解 | #用户常用语言有多少#
import pandas as pd f = pd.read_csv('Nowcoder.csv') print(f['Language'].nunique()) print(f['Language'].unique()) '''函数汇总''' #1. 使用 value_counts() ...
2023-12-08
11
308
题解 | #牛客网不同语言使用人数#
import pandas as pddata = pd.Series([1, 2, 2, 3, 3, 3, 4, 4, 4, 4])1. 使用 value_counts() 统计唯一值及其频次value_counts_result = data.value_counts()2. 使用 unique...
2023-12-05
5
306
题解 | #2020年毕业的人中最喜欢用Java的用户#
这是使用 `pd.set_option()` 函数设置 Pandas 显示选项的例子。让我解释一下这些选项的含义:- `pd.set_option('display.width', 300)`: 设置显示一行的最大字符宽度为300。这意味着当你输出一行的内容时,如果内容的字符宽度超过了300,Pan...
2023-12-05
10
442
首页
上一页
1
2
3
4
下一页
末页