上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页
摘要: SELECT CONCAT("SQL ", "Runoob ", "Gooogle ", "Facebook") AS 连接1, CONCAT_WS("-", "SQL", "Tutorial", "is", "fun!")AS 连接2 阅读全文
posted @ 2020-06-24 23:57 limalove 阅读(211) 评论(0) 推荐(0)
摘要: 思路:主要是看每门课程下,对于每个分数,该课程大于该分数的有几个 保留名次空缺: select a.cid, a.sid, a.score , count(a.score<b.score)+1 as rank from sc a left join sc b on a.cid=b.cid and a 阅读全文
posted @ 2020-06-24 22:10 limalove 阅读(840) 评论(0) 推荐(0)
摘要: 官方文档: This function returns a string result with the concatenated non-NULL values from a group. It returns NULL if there are no non-NULL values. The f 阅读全文
posted @ 2020-06-24 20:47 limalove 阅读(254) 评论(0) 推荐(0)
摘要: http://m.tingroom.com/ new yorker杂志https://www.newyorker.de/cz/lifestyle/staysafe/ 阅读全文
posted @ 2020-05-09 21:04 limalove 阅读(128) 评论(0) 推荐(0)
摘要: 可以把包含 日期+时间格式 的,转换成 日期格式,即去掉时间部分 df["订单创建时间"]=pd.to_datetime(df_pre["订单创建时间"]).dt.normalize() #NO-21, how to convert a series of date-strings to a tim 阅读全文
posted @ 2020-05-02 00:39 limalove 阅读(145) 评论(0) 推荐(0)
摘要: combine_first( )方法 序列的例子 #combine_first()方法前的是调用参数,在括号里的是传递参数,把前者为np.nan的用后者相同位置的数来补充,相当于“打补丁” ser1=pd.Series([np.nan,2.5,np.nan,3.5,4.5,np.nan],index 阅读全文
posted @ 2020-04-26 22:47 limalove 阅读(2007) 评论(0) 推荐(0)
摘要: mask=pd.MultiIndex.from_arrays([['Ohio', 'Ohio', 'Colorado'], ['Green','bed', 'Green']], names=('state', 'color')) df = pd.DataFrame(np.arange(12).res 阅读全文
posted @ 2020-04-26 12:33 limalove 阅读(733) 评论(0) 推荐(0)
摘要: 转载自:https://www.cnblogs.com/zeng-ymzkx/p/11468912.html df.dropna( thresh = n ) 理解:这一行除去NA值,剩余数值的数量大于等于n,便显示这一行。 import numpy as np from numpy import n 阅读全文
posted @ 2020-04-25 00:35 limalove 阅读(3466) 评论(0) 推荐(0)
摘要: pd.Index(ser2).get_indexer(ser1),返回ser1中各元素在ser2中的索引位置 #pd.Index(ser2).get_indexer(ser1),返回ser1中各元素在ser2中的索引位置 ser1=pd.Series(['c', 'a', 'b', 'b', 'c' 阅读全文
posted @ 2020-04-24 23:37 limalove 阅读(883) 评论(0) 推荐(0)
摘要: FutureWarning: Series.nonzero() is deprecated and will be removed in a future version.Use Series.to_numpy().nonzero() instead END The current behaviou 阅读全文
posted @ 2020-04-24 00:08 limalove 阅读(897) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页