20140817_19_HX400V_宜蘭國際童玩節_俄羅斯 by 儲蓄保險王 · 2014-09-02 20140817_19_HX400V_宜蘭國際童玩節_俄羅斯 http://youtu.be/aBtjvr6pTyo 相關文章Python TQC考題606: 檢驗學號Python TQC考題: 輸入一個正整數n,並讀取read.txt內容,將首n列的每個英文字首字大寫輸出write.txt ; pandas.Series.str.title() #輸出csv或xlsx時,如何不輸出index 跟 header ? .to_csv( "write.txt", index=False, header=False)Python中的時間處理簡介; timestamp: float = time.time() #獲取時間戳; localtime = time.localtime( timestamp ) #獲取localtime; strftime = time.strftime('%Y-%m-%d %H:%M:%S', localtime) #獲取strftime #str format timePython 邏輯運算子: and(&) or(|) xor(^) notPython 機器學習:手把手教你用 sklearn.preprocessing .StandardScaler 做數據標準化(Standardization)#只接受2D數據 ; from sklearn.preprocessing import StandardScaler ; 儲存/載入 scaler or model: joblib.dump() / joblib.load()Python: 如何錄製wav檔? import sounddevice ; from scipy.io.wavfile import writePython: pandas.DataFrame (df) 的取值: df [單一字串] 或df [list_of_strings] 選取一個或多個columns; df [切片] 或 df [bool_Series] 選取多個rows #bool_Series長度同rows, index也需要同df.index ,可以使用.equals() 確認: df.index.equals(mask.index)Python: 如何批量將檔案更名?os.rename(old_name, new_name) ; glob.glob() #讀取資料夾中的所有檔案 ; os.path.split(fpath) = os.path.dirname(fpath) , os.path.basename(fpath) ; os.path.splitext(basename) #分離主/副檔名Python: list.index() 只能找到第一個元素的index,若元素有重複,如何找出所有index? indexes = [index for index, value in enumerate(my_list) if value == target]
0 Python: Pandas的apply() 解析: DataFrame.apply() 逐Series操作; Series.apply() 逐元素操作 ; SeriesGroupBy_object .apply() 逐Series操作 ,請勿混淆Series.apply() 逐元素操作 2025-04-22
近期留言