• 保障型
  • 各家保險公司1
    • 中國人壽
    • 新光
    • 富邦
    • 遠雄
    • 全球
    • 台灣人壽
    • 元大人壽
  • 各家保險公司2
    • 台銀人壽
    • 宏泰
    • 南山&朝陽
    • 國泰
    • 香港保單
    • 第一金人壽
    • 安聯
  • 投資
  • 理財與保險觀念
  • 信用卡
  • 保險局仇視短年期儲蓄險
  • 利率&利差
  • 專家?專門害人家?
  • 舊保單轉換
  • 攝影或3C
  • 新聞
  • 旅遊訂房,購物
  • 廠商廣告
  • 清單
  • 男女交友
  • 笑話
  • 電影
  • 未分類
All Rights ReservedView Non-AMP Version
儲蓄保險王
  • 攝影或3C

Python: 字串 str.find(關鍵字[,start][,end]),找不到的話回傳-1,如何找出資料字串中,所有關鍵字的index?詞頻計算

3 年 ago

資料來源: https://docs.p...

  • 攝影或3C

Python: 十進位的67305985是二,八,十六進位的多少?二進位前綴0b ; 八進位octal (前綴0o) ; 十六進位hexadecimal(前綴0x) ;前綴可將二,八,十六進位數字轉為十進位 ; 十進位數字轉為二,八,十六進位: bin(number) ; oct(number) ; hex(number)

3 年 ago

二進位的 0000 0100 0000 ...

  • 攝影或3C

Python四種容器(list, tuple, set, dict)的CRUD(Create創建, Read讀取, Update修改, Delete刪除)

3 年 ago

CRUD\容器 空list: [] 空t...

  • 攝影或3C

Python常用的模組內建常數; __name__ ; __file__ ; __doc__ ; __all__ ;__dict__; vars()->Dict[str,str] ; dir()->List[str]

3 年 ago

vars() type是dict dir...

  • 攝影或3C

Python逐位元運算(bitwise operation),或or | , 且and & , 互斥或xor ^ , 反向~ ;位元左移 x << y => 效果同x*(2**y) ; 位元右移 x>>1 => 效果同x//2;x>>16效果同 x//(2**16)

3 年 ago

逐位元運算 OR |  : 其中一個是1...

  • 攝影或3C

Python: pandas.DataFrame()處理雙維度資料,dict跟2D list轉為DataFrame有何差別?如何用index及columns屬性客製化index跟欄位名稱?df.index = [“一”,”二”,”三”,”四”] ; df.columns = 使用.head(n) ; .tail(m) ;取首n列,尾m列; .at[index,欄位名稱] 取單一資料 ; .iat[index,欄位順序] 取單一資料 ; .loc[index,欄位名稱] 取資料 ; .iloc[index,欄位順序];df.iloc[ [0,1],[0,2]])取資料 ; df.iloc[ 0:3,0:2]切片

3 年 ago

# -*- coding: utf-8 ...

  • 攝影或3C

Python:如何用pandas.read_csv()讀取無欄標籤的csv檔?= pd.read_csv(“路徑\檔名.副檔名”,header=None) ; print( “{:=^40s}”.format(“傳說中的分隔線”) ) ;置中對齊,不足40字元的部分以=填滿

3 年 ago

import pandas as pd ...

  • 攝影或3C

Python如何讀寫csv逗點分隔檔(每列內容為新光增有利現金流)?pandas.read_csv(r”路徑\檔名.副檔名”),如何移除list中的nan元素?math.isnan(),如何計算新光增有利IRR?numpy_financial(array) ;輸出csv檔時如何去掉index跟header?如何選擇要寫入的直欄columns? dfFinal.to_csv(fpath, index=False, header=None, columns=[0,1])

3 年 ago

pandas.read_csv(r”路徑...

  • 攝影或3C

Python如何讀取excel檔(.xlsx)?如何用欄標籤提取某一直行?df=pandas.read_excel() ; df[“欄標籤”]

3 年 ago

import pandas as pd ...

  • 攝影或3C

Python讀取csv逗點分隔檔: pandas.read_csv(r”路徑\檔名.副檔名”) vs csv.reader(io.TextIOWrapper) 有何差別? 為何出現ParserError? #Parser:解析器,如何讀取Excel檔(xlsx)?pandas.read_excel()

3 年 ago

先看以下兩個逗點分隔檔: txt檔為記事...

Show more Posts
Show previous Posts
All Rights ReservedView Non-AMP Version