Excel TQC考題202: 快樂小學學生名冊,自訂格式:0″公斤”;[紅色]”減”0″公斤”;[藍色]”完美身材” by 儲蓄保險王 · 2022-04-10 Excel TQC考題202: 快樂小學學生名冊 簡單的都省略 題目: 用CTRL + SHIFT + 方向鍵:下 選取I7~I62 CTRL + I 0″公斤”;[紅色]”減”0″公斤”;[藍色]”完美身材” 相關文章Python TQC考題508: 二進位運算; 使用f string格式化字串 {:08b}Python: Spyder5.4.2的IPython Console出現 Figures now render in the Plots pane by default. To make them also appear inline in the Console, uncheck "Mute Inline Plotting" under the Plots pane options menu. 如何在IPython Console中查詢python路徑與版本: !python -V ; !where pythonPython: pandas.DataFrame .sort_values() 用簡單例子理解 sort_values() 方法Python: jieba (中文斷詞套件) 如何萃取關鍵字? import jieba.analyse ; jieba.analyse.extract_tags()Python: 如何計算全文件詞頻(term frequency,簡稱TF)?如何使用jieba做中文斷詞? lis_jieba = jieba.lcut(strr)Python中的文件和路徑操作:使用os.path函數和__file__變數; os.path.split() #一次取得dirname , basename 可以取代os.path.dirname() + os.path.basename() ;分離主/副檔名: os.path.splitext() #split ext ; os.path.join( folder, fname) #將folder, fname合併為完整的路徑Python: 在使用Pandas進行邏輯運算時,應避免使用or運算子,而應使用|運算子(逐元素比對) ,以免觸發ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().Python: List[ pandas.Series ] 轉DataFrame技巧:正確理解row和column的關係,同 concat( List[ pandas.Series ], axis=1 ).TPython: 使用pandas做樞紐分析有那些方法?pivot_table() = groupby() + pivot() ; crosstab()
0 Python: pandas.read_excel(r”路徑\檔名.副檔名”, header = None), 自動加上0,1…的欄標籤, DataFrame如何取某一直欄或橫列? 如何用 .iloc[bool_list] 取出判斷式為真的那一列? bool_list = list( df[0] == 0 ) ; bool_list = list(df[0].isin([0])) ; DataFrame如何顯示完整的資料? pandas.set_option ( “display.max_rows”, None) 2022-11-28
0 Python繪製hlines , vlines , axhline , axvline , axline ; import matplotlib.pyplot as plt ; plt.hlines(y, xmin, xmax,color=”b”) ; plt.vlines(x, ymin, ymax,color=”r”) 2022-09-12
0 Python: Spyder介面如何改為垂直分割?View -> Windows layouts -> Vertical split,若沒出現Vertical split怎麼辦? Tools -> Reset Spyder to factory defaults 2022-11-02
近期留言