20140817_07_HX400V_宜蘭國際童玩節_土耳其 by 儲蓄保險王 · 2014-08-26 20140817_07_HX400V_宜蘭國際童玩節_土耳其 http://youtu.be/W2dI8nBbqVQ 相關文章Python: 如何使用 os.environ["PATH"] 設定環境變數?與 sys.path.append() 差別為何?Python 非監督式機器學習: 關聯規則; 使用 mlxtend ; 購物欄分析 ; from mlxtend.preprocessing import TransactionEncoderPython for迴圈,for i in range(起始值,結束值,間距): #range參數不含結束值Python Caller Name (呼叫者函數名) 教學:sys._getframe(1) vs inspect.currentframe().f_back # inspect.currentframe() 先拿到自己,再 .f_back 到 caller;等價於 sys._getframe(1)Python如何做excel的樞紐分析? groupbyObj = df.groupby(['A', 'B']) ; groupbyObj.apply() 跟 groupbyObj.agg() 差異為何? result = groupbyObj .apply( function(df) -> Series ) ; result_agg = groupbyObj .agg( ['mean', 'std'] ) ; aggfunc(Series) -> floatPython:字典dict()如何一次讀出所有keys, values, items? dic.keys() ; set(dic) 無序; dic.values() ; dic.items()Python: any(list) 判斷list中是否有True ; all(list) 判斷list中是否全為True ; any(pandas.Series)相當於any(pandas.Series.values) ; i in pandas.Series 卻相當於於i in pandas.Series.indexPython繪製hlines , vlines , axhline , axvline , axline ; import matplotlib.pyplot as plt ; plt.hlines(y, xmin, xmax,color="b") ; plt.vlines(x, ymin, ymax,color="r")Python pandas: 高效數據重構(樞紐分析) — 使用 groupby("Name").cumcount, set_index 與 unstack 將長格式轉為寬格式
0 Python: Pandas 與 NumPy 處理缺失值中位數計算的完整指南; pandas.Series.median( skipna=True ) ; median_np = numpy .nanmedian(arr) 2025-06-04
近期留言