tuik_get_table_data
Downloads TÜİK Excel tables and converts them into tidy long format, making statistical data ready for analysis.
Instructions
Download an 'istab' Excel table and convert it to tidy long format.
Handles TUIK's common layouts (title/footnote rows, year-per-sheet workbooks, crosstabs with label columns and period headers). Output columns: the table's own label columns plus 'donem' and 'deger'. Layouts vary, so check tidy_confidence; tuik_download_table_file always gets you the raw file instead.
Args: url: The url field of an istab row from tuik_list_tables/tuik_search_tables. output_path: Optional CSV path; if given, the tidy table is written there. max_rows: Rows to include in the preview (default 50).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| max_rows | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |