Datasets and queries
Opening a dataset
Click a data file to open it in the grid. These formats open the same way:
- CSV and TSV, JSON, Parquet and Feather
- Stata (.dta), SPSS (.sav and .zsav) and SAS (.sas7bdat and .xpt)
- Excel
Files with millions of rows open too: the grid fetches only the rows on screen. Stata, SPSS and SAS dates and missing values are read as such. Messy CSV files still open: a column that turns to text halfway down is read as text, and Latin-1 files and files with ragged rows are read with relaxed settings and a note saying so.
Filter and sort
Type a SQL condition in the filter box, such as ret > 0.05 AND ticker = 'IBM', to show only the rows that match. Click a column header to sort.
The schema panel
The schema panel lists each column's type, missing values, unique count, summary statistics and most common values, and the variable labels of Stata, SPSS and SAS files. View ▸ Toggle Schema Panel shows or hides it.
Above the grid, frds lists the scripts that create the dataset and the scripts that use it. Expand a column to see the script lines that mention it.
The Query tab
The Query tab runs DuckDB SQL over the project's files. Name a file or a glob as a table:
SELECT * FROM 'raw/crsp_*.parquet'
or join two files to check merge keys before writing the merge in your own code. Right-click a data file and choose to query it to start from that file. The Query tab is for reading and summarising data, one query at a time.
Queries and filters hold their results in memory, so very large results need enough RAM.