20140817_16_HX400V_宜蘭國際童玩節_俄羅斯 by 儲蓄保險王 · 2014-09-02 20140817_16_HX400V_宜蘭國際童玩節_俄羅斯 http://youtu.be/7Sb9RtAQz1E 相關文章Python 自省精簡示範:Frame 與 Code Object 入門; import inspect ; inspect.currentframe().f_code.co_name #動態取得function_namePython Pathlib 實戰:優雅地篩選多種圖片檔案; images = [f for f in p.glob("*") if f.suffix.lower() in img_extensions]Python: 如何將folder_name, file_name合併為file_path? fpath = os.path .join(folder, fname) ; "\\".join([folder, fname]) ; 如何將file_path拆分出folder?🕵️♂️ Python Regex 實戰:如何精準拆解 CamelCase,同時完美「保護」您的專有名詞?(?i:) 非捕獲與忽略大小寫Python: 如何求整個 pandas.DataFrame 中的最大值? pandas.DataFrame .max().max() ; 如何求最大值的index, columns? numpy.where(condition, [x, y, ]/) ; condition為一 bool_maskPython 正則表示法 中 ?: 與非捕獲群組的精要筆記, ?的多重語義:量詞0 or 1次, +?非貪婪量詞, ?:非捕獲群組, ?P<name> 命名捕獲組, ?= 正向前瞻 斷言, ?! 負向前瞻斷言20140817_08_HX400V_宜蘭國際童玩節_土耳其Python 現代化開發:告別 os.makedirs,擁抱 pathlib 的優雅; Path("你的/路徑").mkdir(parents=True, exist_ok=True)Python: pandas.isna() 處理丟失的數據,如何刪除DataFrame的空列? df3 = df2.reset_index (drop=True) ; df_drop = df3.drop ( nanIdx, axis = 0 ).reset_index( drop = True )
0 Python: 淺拷貝(Shallow Copy)和深拷貝(Deep Copy); list切片有淺拷貝的效果 ; pandas.Series.copy(deep=True) 可對Series對向執行深拷貝 2024-10-26
0 Python機器學習: 線性迴歸, 計算均方誤差 (metrics.mean_squared_error), 判定係數 (metrics.r2_score), 皮爾森積差相關係數 (pearsonr) ; 以波士頓地區房價為例 2022-12-15
0 Python: 如何使用functools.reduce逐步縮減可迭代對象,合併為單個結果? import functools; product = functools.reduce( lambda x, y: x * y, numbers) ; reduce(function, sequence [, initial]) -> value ; map(function, iterable) ; filter(function, iterable) ; map ; filter 2023-06-25
近期留言