作者查詢 / lycantrope

總覽項目: 發文 | 留言 | 暱稱
作者 lycantrope 在 PTT [ Python ] 看板的留言(推文), 共790則
限定看板:Python
[問題] 跑遞迴數列效率問題
[ Python ]12 留言, 推噓總分: +2
作者: shingai - 發表於 2023/07/02 12:15(1年前)
2Flycantrope: 要先simplify後才存入memo07/02 13:37
3Flycantrope: 可以用functools.lru_cache來達成你想要的效果07/02 13:41
4Flycantrope: https://pastebin.com/ShZRPJey07/02 13:50
5Flycantrope: if n==0: return 207/02 14:08
9Flycantrope: 你也可以cache simplify會更快07/03 10:58
10Flycantrope: https://pastebin.com/4PuUesfM07/03 10:59
[問題] Python讀取CSV檔案,輸出格式跑掉
[ Python ]18 留言, 推噓總分: +3
作者: fred1541 - 發表於 2023/06/27 06:00(1年前)
4Flycantrope: read_csv header看起來是在第二列,skiprows=106/27 10:02
[問題] google or-tools排班問題
[ Python ]6 留言, 推噓總分: 0
作者: elucidator39 - 發表於 2023/06/16 14:13(1年前)
1Flycantrope: 那不就變成分兩組配給AB兩班嗎?06/16 15:56
4Flycantrope: 不是很懂or-tools,你可以利用AddBoolOr篩選?06/16 17:21
[問題] 我想請板上的大神們幫忙已刪文
[ Python ]19 留言, 推噓總分: -2
作者: stabile - 發表於 2023/06/05 01:01(1年前)
9Flycantrope: 不知道你要學python還是會python但不會串line api06/05 13:56
[問題] 關於DataFrame分組計算的問題
[ Python ]13 留言, 推噓總分: 0
作者: sonicstars - 發表於 2023/05/31 22:14(1年前)
1Flycantrope: groupby後直接apply算daily_profit/mile.max()05/31 23:47
9Flycantrope: f = lambda d: d.iloc[...,0]/ d.iloc[...,1].max()06/01 21:00
10Flycantrope: Daliy_profit_milage.groupby(gp_m).apply(f)06/01 21:00
11Flycantrope: 是daily不是daliy06/01 21:02
[問題] 怎麼把list裡面的方括號去除掉?
[ Python ]11 留言, 推噓總分: +1
作者: peter308 - 發表於 2023/05/30 22:32(1年前)
2Flycantrope: 沒版主,來洗文章。2012洗到現在還在問這種問題05/30 23:20
[問題] 大量資料groupby 速率問題
[ Python ]2 留言, 推噓總分: +1
作者: qwtl0213 - 發表於 2023/05/28 23:16(1年前)
1Flycantrope: polars05/28 23:53
[問題] 正則的分組匹配問題
[ Python ]10 留言, 推噓總分: +1
作者: god1230321 - 發表於 2023/05/26 12:00(1年前)
1Flycantrope: (\d)+就不是找疊字啊 任何相連數字都會匹配05/26 12:11
2Flycantrope: 單一數字也會匹配05/26 12:12
[問題] print輸出對不齊
[ Python ]3 留言, 推噓總分: +1
作者: asiagodfater - 發表於 2023/05/15 20:39(1年前)
2Flycantrope: unicodedata.east_asian_width05/15 21:05
Re: [問題]請教如何加快dataframe的條件判斷
[ Python ]8 留言, 推噓總分: +5
作者: celestialgod - 發表於 2023/05/15 01:47(1年前)
3Flycantrope: dask還是輸polars,polars就是blazingly fast!!!05/15 09:43
6Flycantrope: pandas的str吃GIL polars加上to_pandas會比較公平一點05/15 15:23
7Flycantrope: 不過polars用lazy再collect optimize搞不好更快w05/15 15:25