# index\_zipcodes.csvpaths

{% hint style="success" %}
Run this example using its test data from within [FlightPath Data](https://www.flightpathdata.com/).
{% endhint %}

```
~
   This csvpath creates an index of zipcodes by city from a CSV file 
   with a CITY header and a ZIPCODE header. The index will be used 
   to perform a lookup of a city's zipcode by another csvpath in a 
   different named-paths group.

   To run this example: 
     1. Load Boundaries_US_Zip_Codes.csv as a named-file called zips
     2. Load this csvpath as a named-paths group called zip_index
     3. Run zip_index against the named-file zips

   See README.md for the full example steps sequence.

   source: data.gov, catalog.data.gov/dataset/boundaries-us-zip-codes   
   test-data: lookups/Boundaries__US_Zip_Codes.csv
   name: create index
~
$[1*][
    track.zipcodes(#CITY,#ZIPCODE)
    ~ we want to index, but not to capture data, so we reject all lines ~
    no()
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.csvpath.org/getting-started/the-flightpath-data-examples/lookups/index_zipcodes.csvpaths.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
