20140817_07_HX400V_宜蘭國際童玩節_土耳其 by 儲蓄保險王 · 2014-08-26 20140817_07_HX400V_宜蘭國際童玩節_土耳其 http://youtu.be/W2dI8nBbqVQ 相關文章Python: 如何用pandas.read_csv() 讀取逗點分隔檔並忽略空列,跳過某些列? dfRaw = pd.read_csv (fpath, skip_blank_lines = True, skiprows =6)Python: matplotlib繪圖,如何限定座標軸範圍? plt.axis([xmin, xmax, ymin, ymax])Python: Visual Studio Code (VS code) & Spyder 如何切換不同版本的Python直譯器( Interpreter ), VS code: 齒輪>命令選擇區(Ctrl + Shift +P) > Python: Select Interpreter #Spyder console: !where python #知道自己安裝的python路徑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]切片Python: 如何對 pandas.DataFrame 兩欄位運算後,增加到最後一欄? df['sum_AB'] = df.apply(sum_ab, axis=1) ; lambda函式Python, typing: 函數庫規格標註; def addTest(x:float, y:float) -> float: List[資料型態] Set[資料型態] Tuple[資料型態] Dict[str,value的資料型態] Union[資料型態1, 資料型態2] ,函式若有多個輸出值,其實是輸出一個tuple如何用tkinter製作Python的GUI(圖形使用者介面)? from tkinter import Tk, Button, filedialog ; 物件導向避免使用全域變數 ; pandas.read_csv(fpath, skip_blank_lines = True) 可以濾掉空列,Tab , 不定數空白Python如何對DataFrame內容做函式運算? pandas.DataFrame.apply() ; result_broadcast = df.apply(func, axis=1, result_type=’broadcast’)Python: matplotlib繪製出的圖表如何插入背景圖? img = plt.imread('background_image.png') ; ax.imshow(img, extent=[0, 10, -1.2, 1.2], aspect='auto', alpha=0.5)
0 Python: any(list) 判斷list中是否有True ; all(list) 判斷list中是否全為True ; any(pandas.Series)相當於any(pandas.Series.values) ; i in pandas.Series 卻相當於於i in pandas.Series.index 2023-06-03
0 Python: 如何用tkinter做出 對話 Button GUI? 點Button即可選擇檔案 ; fpath = filedialog .askopenfilename() ; self.process_button.pack(fill=’both’, expand=True) ; 物件導向避免使用全域變數 2023-03-29
近期留言