clean-data-xls

द्वारा anthropic

गंदे स्प्रेडशीट डेटा को साफ करें — व्हाइटस्पेस हटाएं, असंगत केसिंग ठीक करें, टेक्स्ट के रूप में संग्रहीत संख्याओं को बदलें, तिथियों को मानकीकृत करें, डुप्लिकेट हटाएं, और चिह्नित करें…

npx skills add https://github.com/anthropics/financial-services --skill clean-data-xls

Clean Data

Clean messy data in the active sheet or a specified range.

Environment

  • If running inside Excel (Office Add-in / Office JS): Use Office JS directly (Excel.run(async (context) => {...})). Read via range.values, write helper-column formulas via range.formulas = [["=TRIM(A2)"]]. The in-place vs helper-column decision still applies.
  • If operating on a standalone .xlsx file: Use Python/openpyxl.

Workflow

Step 1: Scope

  • If a range is given (e.g. A1:F200), use it
  • Otherwise use the full used range of the active sheet
  • Profile each column: detect its dominant type (text / number / date) and identify outliers

Step 2: Detect issues

IssueWhat to look for
Whitespaceleading/trailing spaces, double spaces
Casinginconsistent casing in categorical columns (usa / USA / Usa)
Number-as-textnumeric values stored as text; stray $, ,, % in number cells
Datesmixed formats in the same column (3/8/26, 2026-03-08, March 8 2026)
Duplicatesexact-duplicate rows and near-duplicates (case/whitespace differences)
Blanksempty cells in otherwise-populated columns
Mixed typesa column that's 98% numbers but has 3 text entries
Encodingmojibake (é, ’), non-printing characters
Errors#REF!, #N/A, #VALUE!, #DIV/0!

Step 3: Propose fixes

Show a summary table before changing anything:

ColumnIssueCountProposed Fix

Step 4: Apply

  • Prefer formulas over hardcoded cleaned values — where the cleaned output can be expressed as a formula (e.g. =TRIM(A2), =VALUE(SUBSTITUTE(B2,"$","")), =UPPER(C2), =DATEVALUE(D2)), write the formula in an adjacent helper column rather than computing the result in Python and overwriting the original. This keeps the transformation transparent and auditable.
  • Only overwrite in place with computed values when the user explicitly asks for it, or when no sensible formula equivalent exists (e.g. encoding/mojibake repair)
  • For destructive operations (removing duplicates, filling blanks, overwriting originals), confirm with the user first
  • After each category of fix (whitespace → casing → number conversion → dates → dedup), show the user a sample of what changed and get confirmation before moving to the next category
  • Report a before/after summary of what changed

anthropic की और Skills

analyzing-financial-statements
anthropic
यह कौशल निवेश विश्लेषण के लिए वित्तीय विवरण डेटा से प्रमुख वित्तीय अनुपात और मीट्रिक की गणना करता है।
applying-brand-guidelines
anthropic
यह कौशल सभी जनरेट किए गए दस्तावेज़ों में रंग, फ़ॉन्ट, लेआउट और संदेश सहित एक समान कॉर्पोरेट ब्रांडिंग और स्टाइलिंग लागू करता है।
creating-financial-models
anthropic
यह कौशल डीसीएफ विश्लेषण, संवेदनशीलता परीक्षण, मोंटे कार्लो सिमुलेशन और निवेश के लिए परिदृश्य योजना के साथ एक उन्नत वित्तीय मॉडलिंग सूट प्रदान करता है…
board-minutes
anthropic
बोर्ड या समिति की बैठक के कार्यवृत्त आपके घरेलू प्रारूप में तैयार करता है। आपके कैलेंडर से आगामी बोर्ड और समिति की बैठकों का स्वतः पता लगाता है, एजेंडा मांगता है और…
crm-cleanup
anthropic
HubSpot में पुराने डील, डुप्लीकेट कॉन्टैक्ट और गायब फ़ील्ड को स्कैन करता है, फिर मालिक द्वारा अनुमोदित चीज़ों को ठीक करता है। डील, कॉन्टैक्ट आदि के लिए वैकल्पिक scope आर्गुमेंट स्वीकार करता है।
redshift-api
anthropic
Amazon Redshift के विरुद्ध SQL चलाएँ — स्टेटमेंट सबमिट करें, स्थिति जाँचें, परिणामों को पृष्ठांकित करें, और डेटाबेस/स्कीमा/टेबल ब्राउज़ करें। इसका उपयोग तब करें जब उपयोगकर्ता चाहता है…
ticket-deflector
anthropic
ग्राहक के अग्रेषित ईमेल या टिकट को पढ़ता है, PayPal से ऑर्डर/रिफंड स्थिति और HubSpot से खाता इतिहास खींचता है, मालिक के अनुरूप स्वर में उत्तर का मसौदा तैयार करता है…
reg-feed-watcher
anthropic
अब नियामक फीड्स की जाँच करें और पिछली जाँच के बाद से नई चीज़ों की रिपोर्ट करें, जो आपकी भौतिकता सीमा के अनुसार फ़िल्टर की गई हों। उपयोग तब करें जब उपयोगकर्ता "फीड्स की जाँच करें" कहे,…