Datasets are the files you analyze in Margin. Upload your data once, then access it from any notebook in your workspace.
| Format | Extensions | Best For |
|---|---|---|
| CSV | .csv | Tabular data, spreadsheets |
| JSON | .json | Structured data, API responses |
| JSONL | .jsonl | Line-delimited JSON, logs |
| Parquet | .parquet, .pq | Large datasets, efficient storage |
Maximum file size: 50 MB
From the Datasets page:
Your file uploads to secure cloud storage and appears in your dataset list.
Click any dataset to view:
Access your datasets using the margin library:
import margin
# Load a dataset by name
df = margin.load("my-dataset")
# Or by display name
df = margin.load("Sales Q4 2024")
The margin library is pre-installed in the kernel environment.
import margin
import pandas as pd
# Load your data
df = margin.load("customer_data")
# Explore
print(df.shape) # (rows, columns)
print(df.columns) # Column names
df.head() # First 5 rows
# Analyze
df.describe() # Summary statistics
df.groupby('region').sum() # Aggregations
On the Pro plan, you can make datasets public:
Public datasets get:
marginfordata.com/@username/datasets/slugThis enables others to reproduce your analyses end-to-end.
| Level | Who Can Access |
|---|---|
| Private | Only workspace members |
| Public | Anyone with the link (Pro only) |
Free workspaces see an upgrade prompt when trying to enable public sharing.
Your workspace has a storage quota:
| Plan | Storage |
|---|---|
| Free | Limited |
| Pro | More room |
| Team | Custom |
View your usage in Settings → Billing or check the storage indicator on the Datasets page.