Skillpedia
التحليل وجداول البيانات41k · #6608

clean-data-xls

ما الذي تفعله

توجّه هذه المهارة الوكيل لترتيب بيانات فوضوية في جدول بيانات قبل التحليل. وهي موجهة لكل من يحوي جدوله تنسيقات غير متسقة أو تكرارات أو أخطاء.

متى تستخدمها

  • ✓عندما تكون أسماء أو حالة أحرف أو تنسيقات تواريخ في الجدول غير متسقة.
  • ✓عندما تُخزَّن الأرقام كنص ولا تُجمع بشكل صحيح.
  • ✓عندما تحتاج إلى حذف الصفوف المكررة قبل التحليل.

رابط المهارة

https://github.com/anthropics/financial-services/blob/main/plugins/vertical-plugins/financial-analysis/skills/clean-data-xls/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/anthropics/financial-services/blob/main/plugins/vertical-plugins/financial-analysis/skills/clean-data-xls/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“نظّف جدول المبيعات الفوضوي هذا، بحيث تكون التواريخ والأرقام وأسماء العملاء متسقة.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يحلل الوكيل كل عمود، ويجد مشكلات مثل المسافات الزائدة وتنسيقات التواريخ المختلطة والتكرارات، ويقترح الإصلاحات قبل تطبيقها. يعمل في إضافة Excel مفتوحة أو على ملف.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

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

Issue What to look for
Whitespace leading/trailing spaces, double spaces
Casing inconsistent casing in categorical columns (usa / USA / Usa)
Number-as-text numeric values stored as text; stray $, ,, % in number cells
Dates mixed formats in the same column (3/8/26, 2026-03-08, March 8 2026)
Duplicates exact-duplicate rows and near-duplicates (case/whitespace differences)
Blanks empty cells in otherwise-populated columns
Mixed types a column that's 98% numbers but has 3 text entries
Encoding mojibake (é, ’), non-printing characters
Errors #REF!, #N/A, #VALUE!, #DIV/0!

Step 3: Propose fixes

Show a summary table before changing anything:

Column Issue Count Proposed 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
الأسئلة الشائعة

هل سيغيّر بياناتي دون أن يُريني؟

لا. تقترح المهارة الإصلاحات أولاً، لتراجعها قبل تطبيقها.

ما المشكلات التي يكشفها؟

المسافات وحالة الأحرف والأرقام المخزنة كنص والتواريخ المختلطة والمكررات والخانات الفارغة وأنواع البيانات المختلطة وأخطاء الترميز وأخطاء المعادلات.

هل يمكنه تنظيف جزء من الورقة؟

نعم. يمكنك إعطاؤه نطاقاً، وإلا فإنه يستخدم كامل المنطقة المستخدمة في الورقة النشطة.

التفاصيل

الوصف الأصلي من المؤلف

Clean up messy spreadsheet data — trim whitespace, fix inconsistent casing, convert numbers-stored-as-text, standardize dates, remove duplicates, and flag mixed-type columns. Use when data is messy, inconsistent, or needs prep before analysis. Triggers on "clean this data", "clean up this sheet", "normalize this data", "fix formatting", "dedupe", "standardize this column", "this data is messy".

repo: anthropics/financial-services

الشعبية

نجوم GitHub
41k
الترتيب
#6608
الترخيص
Apache-2.0
آخر تحديث
28‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة