<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Categorical on 每日拍拍</title>
    <link>https://dailypypy.org/tags/categorical/</link>
    <description>Recent content in Categorical on 每日拍拍</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-tw</language>
    <copyright>© 2026 每日拍拍</copyright>
    <lastBuildDate>Thu, 29 Oct 2026 11:39:00 +0800</lastBuildDate><atom:link href="https://dailypypy.org/tags/categorical/index.xml" rel="self" type="application/rss+xml" />
    <follow_challenge>
      <feedId>155076163427069952</feedId>
      <userId>154825760438254592</userId>
    </follow_challenge>
    
    
    <item>
      <title>Polars Enum / Categorical：分類詞彙、未知值與跨批次一致性</title>
      <link>https://dailypypy.org/learn/polars-enum-categorical-contracts/</link>
      <pubDate>Thu, 29 Oct 2026 11:39:00 +0800</pubDate>
      
      <guid>https://dailypypy.org/learn/polars-enum-categorical-contracts/</guid>
      <description>&lt;!---
1440x768
prompt: masterpiece, best quality, highres, clean anime illustration, japanese anime style, soft shading, flat color design, 1girl, black hair, green eyes, white off-shoulder shirt, black short skirt, three-quarter upper body from slightly below, arms folded loosely across her waist, calm determined expression with a subtle closed-mouth smile, looking at viewer, pastel powder lilac background, neat composition, detailed eyes, cute and smart vibe, minimal background, polished illustration, no text
negative prompt: worst quality, bad eye, bad hand, extra limbs, manga, multiple views, monochrome, text, signature
dedup note: A vocabulary-contract follow-up to ../python-polars/, not another DataFrame survey. ../python-enum/ owns Python constant classes and state transitions; ../polars-join-cardinality-validation/ owns relational cardinality. This article instead owns fixed/discovered column vocabulary, unknown/null quarantine, business ordering, compatible batch dtypes, vocabulary migration and serialization assertions. Current 205-source inventory and nearest full sources checked before drafting.
source check: Official categorical guide and installed Polars 2.1.0 docstrings inspected 2026-10-29. Categories is unstable; StringCache is deprecated and a no-op in this version. All data and policies are fictional.
verification: Nine exact Python blocks parsed and demo passed; 18 pytest cases passed on Python 3.12 / Polars 2.1.0, including eight reader-facing cases and ten extended schema/vocabulary/round-trip checks. All 11 rendered code blocks match the source. Nearest current-source character 5-gram Jaccard 0.075102 versus Join cardinality; manual scope review confirms different reader task. ComfyUI prompt b80a4da1-63de-42ed-8272-317133c4053f produced DAILYPYPY_00150_.png; PNG 1440x768 and visual face/hands/text/artifact check passed.
publication note: Required random date is retained; publishDate permits morning publication with buildFuture=false.
---&gt;

&lt;h2 class=&#34;relative group&#34;&gt;一. 前言：銀牌竟然排在金牌後面？ 
    &lt;div id=&#34;一-前言銀牌竟然排在金牌後面&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700&#34;
            style=&#34;text-decoration-line: none !important;&#34; href=&#34;#%e4%b8%80-%e5%89%8d%e8%a8%80%e9%8a%80%e7%89%8c%e7%ab%9f%e7%84%b6%e6%8e%92%e5%9c%a8%e9%87%91%e7%89%8c%e5%be%8c%e9%9d%a2&#34; aria-label=&#34;定位點&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;嗨，我是拍拍君。今天替客服工單整理會員等級。
報表想依「銅牌、銀牌、金牌」排序，程式卻排成 bronze、gold、silver。
隔天另一批又冒出 &lt;code&gt;Gold&lt;/code&gt;、空字串和 &lt;code&gt;platinum&lt;/code&gt;，大家都說自己沒改 schema。&lt;/p&gt;</description>
      <media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://dailypypy.org/learn/polars-enum-categorical-contracts/featured.png" />
    </item>
    
  </channel>
</rss>
