Excel TQC考題308:銷售訂單統計表,TEXT,範圍名稱 by 儲蓄保險王 · 2022-04-19 Excel TQC考題308:銷售訂單統計表,TEXT,範圍名稱 簡單的部分略過 公式的撰寫一律使用範圍名稱 (不可以用儲存格) 以儲存格A1~I51建立範圍名稱 只能選題目指定的範圍 不可以選整欄 會比題目指定範圍多出許多空格 題目: =TEXT(交易日期,”YYYY-MM-“)&流水號 (不可以用儲存格) 相關文章Excel TQC考題102: Golf,常用》條件式格式設定》圖示集》其他規則(類型:百分位數)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)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 import numpy as np ; np.arange(-50, 60, 10); dict(key)提取dict內的元素; importlib.reload(); np.zeros(); np.array()Python: matplotlib繪圖 如何用 bbox_to_anchor 控制legend (圖例)位置? ax.legend( bbox_to_anchor = (1, 1), borderaxespad=0)Python計算平均值與標準差Python tempfile 模組完全指南:安全管理臨時檔案的最佳實踐; import tempfile ; tempfile.gettempdir() ; tempfile.template ; os.access(temp_dir, os.W_OK) ; with tempfile.NamedTemporaryFile() as tmp: tmp_path = tmp.name #有檔名的臨時檔案 ; with tempfile.TemporaryDirectory() as tmpdir #臨時資料夾 ; with tempfile.TemporaryFile() as tmp #無檔名的臨時檔案Python: 如何用 pandas.DataFrame.apply 讓DataFrame增加新的一欄 ; df[“mean”] = df.apply( np.mean, axis=1) ; DataFrame.apply(func, axis=0, raw=False, result_type=None, args=(), **kwargs)如何用tkinter製作Python的GUI(圖形使用者介面)? from tkinter import Tk, Button, filedialog ; 物件導向避免使用全域變數 ; pandas.read_csv(fpath, skip_blank_lines = True) 可以濾掉空列,Tab , 不定數空白
0 Python TQC考題: 輸入一個正整數n,並讀取read.txt內容,將首n列的每個英文字首字大寫輸出write.txt ; pandas.Series.str.title() #輸出csv或xlsx時,如何不輸出index 跟 header ? .to_csv( “write.txt”, index=False, header=False) 2023-11-18
近期留言