xiaohongshu
xiaohongshu
csv-excel-merger
Merge multiple CSV/Excel files with intelligent column matching, data deduplication, and conflict resolution. Handles different schemas, formats, and combines data sources. Use when users need to merge spreadsheets, combine data exports, or consolidate multiple files into one.
Full skill instructions
Intelligently merge multiple CSV or Excel files with automatic column matching and data deduplication.
When a user needs to merge CSV or Excel files:
Analyze Input Files:
Inspect File Structures:
Create Merge Strategy:
Column Matching:
Conflict Resolution (when same record appears in multiple files):
Deduplication:
Perform Merge:
# Example merge logic
import pandas as pd
# Read files
df1 = pd.read_csv('file1.csv')
df2 = pd.read_csv('file2.csv')
# Normalize column names
df1.columns = df1.columns.str.lower().str.strip()
df2.columns = df2.columns.str.lower().str.strip()
# Map similar columns
column_mapping = {
'firstname': 'first_name',
'e_mail': 'email',
# ...
}
df2 = df2.rename(columns=column_mapping)
# Merge
merged = pd.concat([df1, df2], ignore_index=True)
# Deduplicate
merged = merged.drop_duplicates(subset=['email'], keep='last')
# Save
merged.to_csv('merged_output.csv', index=False)
Format Output:
📊 CSV/EXCEL MERGER REPORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 INPUT FILES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
File 1: contacts_jan.csv
Rows: 1,245
Columns: 8 (name, email, phone, company, ...)
File 2: contacts_feb.csv
Rows: 987
Columns: 9 (firstname, lastname, email, mobile, ...)
File 3: leads_export.xlsx
Rows: 2,103
Columns: 12 (full_name, email_address, phone, ...)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 COLUMN MAPPING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unified Schema:
• first_name ← [firstname, first name, fname]
• last_name ← [lastname, last name, lname]
• email ← [email, e-mail, email_address]
• phone ← [phone, mobile, phone_number, tel]
• company ← [company, organization, org]
• title ← [title, job_title, position]
• source ← [file origin tracking]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 MERGE ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Total rows before merge: 4,335
Duplicate records found: 892
Conflicts detected: 47
Deduplication Strategy: Keep most recent (by source file date)
Primary Key: email
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ CONFLICTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Record: [email protected]
File 1 phone: (555) 123-4567
File 2 phone: (555) 987-6543
Resolution: Kept most recent (File 2)
[List top 10 conflicts]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ MERGE RESULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Output File: merged_contacts.csv
Total Rows: 3,443
Columns: 7
Duplicates Removed: 892
Breakdown by Source:
• contacts_jan.csv: 1,245 rows (398 unique)
• contacts_feb.csv: 987 rows (521 unique)
• leads_export.xlsx: 2,103 rows (2,524 unique)
Data Quality:
• Email completeness: 98.2%
• Phone completeness: 87.5%
• Company completeness: 91.3%
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 RECOMMENDATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Review 47 conflict records manually
• Standardize phone number format
• Fill missing company names (8.7% incomplete)
• Export conflicts to: conflicts_review.csv
Handle Special Cases:
Multiple Primary Keys:
Different Data Types:
Missing Columns:
Large Files:
Generate Code: Provide Python/pandas script that:
Export Options:
Column Matching:
Data Quality:
Performance:
Transparency:
Ensure merges:
Generate clean, deduplicated merged files with full transparency and data quality checks.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience