import seaborn as sns
# 加载数据
tips = sns.load_dataset(‘tips’)
# 使用 relplot 绘制散点图,并使用 facet_wrap 排列子图
sns.relplot(data=tips, x=’total_bill’, y=’tip’,
hue=’sex’, col=’day’, row=’time’,
facet_kws={‘margin_titles’: True}, height=3,
aspect=1.2).set_axis_labels(‘Total Bill’, ‘Tip’)
sns.relplot(data=tips, x=’total_bill’, y=’tip’,
hue=’sex’, col=’time’, row=’day’,
facet_kws={‘margin_titles’: True}, height=3,
aspect=1.2).set_axis_labels(‘Total Bill’, ‘Tip’)

tips(pandas.core.frame.DataFrame):

col=’day’, row=’time’

col=’time’, row=’day’

推薦hahow線上學習python: https://igrape.net/30afN



![Python:如何用pandas.concat() 合併兩個DataFrame並重置index? pd.concat([df1, df2]) .reset_index(drop=True) ; pd.concat([df1, df2], ignore_index=True) Python:如何用pandas.concat() 合併兩個DataFrame並重置index? pd.concat([df1, df2]) .reset_index(drop=True) ; pd.concat([df1, df2], ignore_index=True)](https://i2.wp.com/savingking.com.tw/wp-content/uploads/2023/03/20230311123232_5.png?quality=90&zoom=2&ssl=1&resize=350%2C233)

![Python:如何使用 PyMuPDF (import fitz ) 提取 PDF 文本區塊並存儲為 DataFrame ; text: List[ Tuple[float|str|int] ] = page.get_text(“blocks”) Python:如何使用 PyMuPDF (import fitz ) 提取 PDF 文本區塊並存儲為 DataFrame ; text: List[ Tuple[float|str|int] ] = page.get_text(“blocks”)](https://i2.wp.com/savingking.com.tw/wp-content/uploads/2025/03/20250320084417_0_7783bd.png?quality=90&zoom=2&ssl=1&resize=350%2C233)




近期留言