5. Working with Data
Import Methods Overview
RangerIO supports multiple ways to bring your data in, each optimized for different use cases:
Creating Your First Project
What is a Project?
A project in RangerIO is a workspace that contains:
- One or more data sources
- Quality reports and profiles
- AI chat history
- Prepared/cleaned datasets
- Export configurations
Best practices:
- Create separate projects for different initiatives
- Use descriptive project names
- Archive completed projects
Creating a Project
- Click "New Project" on the home screen
- Enter project details:
- Name: Descriptive name (e.g., "Q4 Sales Analysis")
- Description: Optional notes about the project
- Location: Where to store project data (default:
~/RangerIO/projects/) - Click "Create"
Your new project opens automatically.
Importing Data
Quick Import (Drag & Drop)
The fastest way to import data:
💡 UI Tip: Look for the dashed border "Drop files here" area in the main window
- Open your project
- Drag files from your file manager into the RangerIO window
- Drop over the "Import Data" area
- RangerIO automatically:
- Detects file format
- Infers data types
- Profiles the data
- Runs quality checks
- Enables AI chat
Supported drag & drop:
- Single files
- Multiple files at once
- Entire folders
Detailed Import
For more control over the import process:
- Click "Import Data" in the left sidebar
- Choose import method:
- Upload files
- Connect to database
- Scan directory
- API connection
File Upload
Step-by-step:
- Click "Upload Files"
- Select file(s) from browser
- Configure settings (if needed):
- CSV/TSV:
- Delimiter (auto-detected)
- Has header row? (usually yes)
- Encoding (UTF-8 default)
- Date format
- Excel:
- Which sheets to import
- Skip rows (header offset)
- JSON:
- Root path (for nested data)
- Array vs. object mode
- Click "Import"
- Wait for processing (progress bar shows status)
- Review import summary
Database Connection
Connect to external databases for querying:
Supported databases:
- PostgreSQL
- MySQL / MariaDB
- Microsoft SQL Server
- SQLite (local files)
Connection steps:
- Click "Connect to Database"
- Enter connection details:
Host: localhost (or IP address) Port: 5432 (default for PostgreSQL) Database: mydb Username: user Password: •••••••• - Test connection (recommended)
- Choose import mode:
- Import table - Copy data locally
- Live query - Query directly (slower, always fresh)
- Select tables/views to import
- Configure sampling (optional):
- Import all rows
- First N rows only
- Random sample
- Import
Security note: Connection credentials are stored encrypted locally.
Directory Watching
Automatically import files as they're added to a folder:
- Click "Scan Directory"
- Choose folder to watch
- Configure filters:
- File patterns (e.g.,
*.csv,sales_*.xlsx) - Subdirectories (include/exclude)
- File age (only new files)
- Set monitoring:
- One-time scan
- Watch for changes (continuous)
- Import existing files (if any)
- RangerIO monitors the folder and auto-imports new files
Use cases:
- Automated daily reports
- Log file analysis
- Batch processing workflows
API Connections
Import data from REST APIs:
- Click "API Connection"
- Enter API details:
URL: https://api.example.com/data Method: GET Headers: (if authentication required) Authorization: Bearer <token> - Test API (sends test request)
- Configure data extraction:
- JSON path to array
- Field mapping
- Pagination (if applicable)
- Set refresh schedule:
- Manual only
- Every N hours/days
- Import
Viewing Data
Data Table View
After import, your data appears in a table:
Features:
- Sortable columns - Click header to sort
- Filtering - Search within columns
- Column selection - Show/hide columns
- Pagination - Navigate large datasets
- Export view - Save visible data
Column information:
- Data type indicator (📊 numeric, 📝 text, 📅 date)
- Missing value percentage
- Unique value count
- Click column header for detailed stats
Data Profile
Automatic statistical analysis of your data:
Overview Tab:
- Total rows and columns
- Data size (MB)
- Import date and source
- Last refreshed
Column Stats:
For each column, see:
- Numeric columns:
- Min, max, mean, median
- Standard deviation
- Distribution histogram
- Outliers
- Text columns:
- Most common values
- Average length
- Pattern analysis
- Date columns:
- Date range
- Frequency
- Gaps in timeline
Quality Summary:
- Completeness score (% non-null)
- Uniqueness score (% unique values)
- Validity score (format compliance)
- Overall data quality grade (A-F)
Data Preview
Quick preview:
- First 100 rows shown by default
- Adjust preview size: 100, 500, 1000, all
- Random sample option
Column insights:
- Hover over cell values for full content
- Color-coded by data type
- Missing values highlighted
- Outliers marked
Understanding Data Quality Reports
When data is imported, RangerIO runs comprehensive quality checks.
Quality Dashboard
Access via "Data Quality" tab:
Summary metrics:
- ✅ Pass: Issues found: 0
- ⚠️ Warning: Issues found: 1-10
- ❌ Fail: Issues found: 10+
Categories:
1. Completeness - Missing data
2. Accuracy - Format/range issues
3. Consistency - Cross-field validation
4. Uniqueness - Duplicates
Completeness Checks
What's checked:
- Null/empty values
- Required fields
- Completeness percentage per column
Example issues:
- "Email column is 15% empty (150/1000 rows)"
- "Required field 'customer_id' has 5 null values"
Recommendations:
- Fill with default value
- Remove incomplete rows
- Flag for manual review
Accuracy Checks
What's checked:
- Data type violations
- Format compliance (emails, phones, dates)
- Range validation (min/max bounds)
- Domain validation (allowed values)
Example issues:
- "Invalid email format: 'john@' in row 45"
- "Date 'revenue' has negative values in 12 rows"
- "Phone number format inconsistent: 5 formats detected"
Recommendations:
- Correct format
- Remove invalid values
- Standardize format
Consistency Checks
What's checked:
- Cross-field relationships
- Business rules
- Referential integrity
Example issues:
- "End date before start date in 8 rows"
- "Shipping address missing when status='Shipped'"
- "Product ID not found in products table"
Recommendations:
- Fix relationship
- Add missing data
- Update status
Uniqueness Checks
What's checked:
- Duplicate rows
- Primary key violations
- Fuzzy duplicates (similar but not exact)
Example issues:
- "42 exact duplicate rows found"
- "Customer ID '12345' appears 3 times"
- "3 near-duplicate names: 'John Smith', 'John Smith', 'Jon Smith'"
Recommendations:
- Remove duplicates
- Merge records
- Deduplicate with fuzzy matching
PII Detection
RangerIO automatically scans for sensitive information:
Detected PII types:
- 🔒 Social Security Numbers
- 💳 Credit card numbers
- 📧 Email addresses
- 📱 Phone numbers
- 🌐 IP addresses
- 🏠 Physical addresses
- 🪪 Custom patterns (user-defined)
PII Report shows:
- Column name
- PII type detected
- Number of occurrences
- Sample values (masked)
- Confidence score
Actions available:
- Flag for review
- Mask (XXX-XX-1234)
- Remove column
- Encrypt
Refreshing Data
Manual Refresh
To update an existing data source:
- Go to "Data Sources"
- Find your source in the list
- Click refresh icon (🔄)
- RangerIO:
- Re-imports from original source
- Updates statistics
- Compares with previous version
- Shows what changed
Change summary:
- Rows added/removed/updated
- New columns
- Schema changes
- Quality score change
Automatic Refresh
Set up scheduled refreshes:
- Click source name → Settings
- Enable "Auto-refresh"
- Set schedule:
- Every N hours
- Daily at specific time
- Weekly on specific day
- Save
Notifications:
- Refresh success/failure
- Significant changes detected
- Quality score degradation
Working with Multiple Data Sources
Viewing All Sources
The "Data Sources" panel shows:
- Source name and type
- Row/column count
- Last updated
- Quality score
- Size (MB)
Actions:
- ✏️ Edit connection settings
- 🔄 Refresh data
- 🗑️ Remove source
- 📊 View profile
- 💬 Chat with this source
Switching Between Sources
In chat interface:
- Dropdown menu to select active source(s)
- "All sources" option for cross-source queries
- Tags show which source answered came from
In data view:
- Tabs for each source
- Quick switcher (Ctrl/Cmd + K)
Best Practices
Organizing Data
Use descriptive names:
- ✅ "customer_transactions_2024"
- ❌ "data1"
Tag your sources:
- Add tags: #sales, #customer-data, #Q4
- Filter by tags in source list
Document your data:
- Add descriptions to sources
- Note data origin and freshness
- List known issues or caveats
Performance Tips
For large files (>1GB):
- Import during off-peak hours
- Consider sampling for exploration
- Use database connections instead of file import
- Ensure sufficient RAM
For many files:
- Batch import (drag multiple files)
- Use directory watching
- Consider consolidation
For frequent updates:
- Use database connections (live query mode)
- Set up automatic refresh schedules
- Monitor for schema changes
Security Tips
Sensitive data:
- Review PII detection results
- Mask or remove PII before exporting
- Use encryption for data at rest
- Restrict project folder permissions
Database credentials:
- Use read-only database accounts when possible
- Rotate passwords regularly
- Don't share connection strings