作者查詢 / lycantrope

總覽項目: 發文 | 留言 | 暱稱
作者 lycantrope 在 PTT [ Python ] 看板的留言(推文), 共826則
限定看板:Python
[問題] apriori 購物籃分析 問題
[ Python ]2 留言, 推噓總分: 0
作者: yatingiloveu - 發表於 2022/06/02 15:51(3年前)
1Flycantrope: min_support太大06/02 16:35
[問題] 小數加法出現奇怪尾巴?
[ Python ]17 留言, 推噓總分: +6
作者: harold1018 - 發表於 2022/05/31 11:50(3年前)
9Flycantrope: 要看目的是什麼,浮點數跟整數不一樣05/31 13:34
[問題] 請問 dataframe的rolling
[ Python ]7 留言, 推噓總分: +5
作者: strekm - 發表於 2022/05/29 22:59(3年前)
4Flycantrope: 根本不用rolling 你想要的應該是shift(2)後相減05/30 13:32
5Flycantrope: df["Val1"] = df["Val"].shift(2).sub(df["Val"])05/30 13:33
[問題] threading Lock無作用
[ Python ]4 留言, 推噓總分: +1
作者: tsaiminghan - 發表於 2022/05/28 08:47(3年前)
1Flycantrope: 貼上來的部分感覺沒什麼問題,可能其他地方有寫錯吧05/28 10:49
2Flycantrope: lock只是確保單一thread存取,不保證順序啊05/28 14:16
[問題] dataframe 寄email換行
[ Python ]2 留言, 推噓總分: +1
作者: similize - 發表於 2022/05/27 21:42(3年前)
1Flycantrope: df.to_html(index=False, escape=False)05/27 22:07
[問題] DataFrame資料更改
[ Python ]16 留言, 推噓總分: +8
作者: FantasyChopi - 發表於 2022/05/21 15:47(3年前)
1Flycantrope: astype(int)05/21 16:06
3Flycantrope: df["col1"] = (df["col1"] == 條件).astype("B")05/21 16:53
5Flycantrope: "B"是轉成uint8 astype不是隨便寫都能跑05/22 14:26
13Flycantrope: 中文可能太難了.05/22 20:58
14Flycantrope: df["Short"]=(df["Short"]=="是").astype("B")05/22 20:58
[問題] 在公司擋下載的情況下更新python 2.7.5
[ Python ]29 留言, 推噓總分: +12
作者: noktu - 發表於 2022/05/19 01:26(3年前)
3Flycantrope: 重點又不是能不能下載..而是你有沒有權限安裝寫入05/19 14:40
19Flycantrope: 哈偷渡隨身碟,快笑死05/20 09:37
[問題]有辦法解決index太多無法存入pdframe嗎?
[ Python ]4 留言, 推噓總分: +3
作者: pl132 - 發表於 2022/05/13 18:30(3年前)
1Flycantrope: 別pivot, 資料重複會缺損都會error05/13 19:01
2Flycantrope: 都可以完整讀取dataframe怎麼會索引不夠.05/13 19:10
4Flycantrope: 問A答B,這麼執著用pivot...也只能祝福了05/14 00:26
[問題] 迭代次數太高,字典問題
[ Python ]22 留言, 推噓總分: +6
作者: qaz28787493 - 發表於 2022/05/13 08:59(3年前)
1Flycantrope: 可以用functools.lru_cache不用自己刻05/13 09:19
2Flycantrope: 記憶體不夠,也可以物件轉pickle暫存硬碟05/13 09:20
[問題] 金融數據處理 - 數字轉時間
[ Python ]7 留言, 推噓總分: +2
作者: barusu - 發表於 2022/05/10 11:44(3年前)
1Flycantrope: 資料又沒提供年月日,電腦怎麼會知道年月日05/10 11:51
3Flycantrope: pd.to_datetime會轉,不提供format預設是nanoseconds05/10 12:48
4Flycantrope: 還是要提供正確的年月日後用datetime做索引,之後才方05/10 12:48
5Flycantrope: 便用resample來分析時間序列05/10 12:49
7Flycantrope: 存字串,之後分析還是要轉時間格式吧05/10 13:23