Tableau如何建立兩個集合,篩選交集的資料? by 儲蓄保險王 · 2023-07-27 Tableau介面: 檔案 => 更多: 基礎用法 銷售額點兩下,類別點兩下: 點擊類別左方的展開(+)圖示 可以生出子類別 欄列互換(Ctrl+W): 直條圖變成橫條圖: 利潤率拖到色彩: 建立兩個集合後,篩選交集 客戶名稱=>右鍵=>建立=>集合 利潤小於0的集合: 銷售額頂端20的集合: 兩個集合拉到篩選條件 客戶名稱拉到 列 相關文章Python TQC考題508: 二進位運算; 使用f string格式化字串 {:08b}Python使用OpenAI API文字轉語音(Text To Speech, TTS) : from openai import OpenAI ; client = OpenAI (api_key = api_key) ; response = client .audio .speech .create( model= "tts-1-hd", input= text_content, response_format= "mp3")Python TQC考題504 次方計算,def compute(x,y):return x**yPython:使用struct() 對二進位數據打包、解包 data = struct.pack (format_str, 1, 2, 3.14) ; result = struct.unpack (format_str, data) ; numpy.fromfile() ;Python 讀取 DOCX 圖片關聯:qn+find/findall 與 XPath 的實戰對照 from lxml import etree ; from docx.oxml.ns import qn; lxml.etree._Element.findall( f".//{ qn('a:blip') }" ) ; .get( qn("r:embed") ) #獲取 屬性名 'r:embed' 的 屬性值(如: 'rId4') ; lxml.etree._Element.xpath( "//a:blip/@r:embed", namespaces = NS) #/@r:embed = 獲取 屬性名 'r:embed' 的 屬性值(如: 'rId4'),使用.findall() 要先.findall()獲取List[_Element],再迴圈_Element.get()獲取屬性值, .xpath() 第一個參數path 使用"//a:blip/@r:embed" ,可直接獲取屬性值(List[str]如: ['rId4', 'rId5']) ; 如何對docx真實移除圖片瘦身?Python 進階:解剖 Word 底層 - 手動封裝 CT_P 與 CT_Tbl 全攻略; from docx.text.paragraph import Paragraph ; from docx.table import Table; para = Paragraph(child, doc) ; table = Table(child, doc)Python TQC考題210_三角形判斷,if 條件1:動作1 elif 條件2:動作2, else: 動作n,==為邏輯判斷式,=為指定Python: 如何去掉list中的重複值並維持順序?dict.fromkeys() ; OrderedDict.fromkeys()Python random.randint(a , b)與tuple, set, issubset(), issuperset()
0 Python常用的模組內建常數; __name__ ; __file__ ; __doc__ ; __all__ ;__dict__; vars()->Dict[str,str] ; dir()->List[str] 2022-11-12
0 Python Caller Name (呼叫者函數名) 教學:sys._getframe(1) vs inspect.currentframe().f_back # inspect.currentframe() 先拿到自己,再 .f_back 到 caller;等價於 sys._getframe(1) 2026-06-25
近期留言