<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 200
Step1:  Welcome to Exampville, the best simulated town in this here part of the internet!
Exampville is provided with Larch to illustrate the
kind of data that a transportation planner might have available when building
a travel model.  This data is almost entirely fictional.
Step2:  TAZ Shapefile
The shapefile that includes a map of the travel analysis zones
in Exampville is stored in a zip file.
Step3:  Geopandas can open and read this data directly with unzipping it on
disk first, by including the "zip
Step4:  TAZ Employment Data
Step5:  Skims
The network skims for Exampville are stored in open matrix format.
Larch includes a OMX reader, which also embeds a number of handy
tools for processing OMX data into formats useful for discrete choice
analysis.
Step6:  Households
Step7:  Persons
Step8:  Tours
<ASSISTANT_TASK:>
Python Code:
import larch, numpy, pandas, os, geopandas
larch.__version__
Explanation: 200: Exampville Simulated Data
End of explanation
import larch.exampville
Explanation: Welcome to Exampville, the best simulated town in this here part of the internet!
Exampville is provided with Larch to illustrate the
kind of data that a transportation planner might have available when building
a travel model.  This data is almost entirely fictional.
End of explanation
larch.exampville.files.shapefile
Explanation: TAZ Shapefile
The shapefile that includes a map of the travel analysis zones
in Exampville is stored in a zip file.
End of explanation
taz_shape = geopandas.read_file("zip://"+larch.exampville.files.shapefile)
taz_shape.plot(edgecolor='k');
Explanation: Geopandas can open and read this data directly with unzipping it on
disk first, by including the "zip://" protocol in front of the filename.
End of explanation
larch.exampville.files.employment
emp = pandas.read_csv(larch.exampville.files.employment, index_col='TAZ')
emp.info()
emp.head()
Explanation: TAZ Employment Data
End of explanation
larch.exampville.files.skims
skims = larch.OMX( larch.exampville.files.skims, mode='r' )
skims
Explanation: Skims
The network skims for Exampville are stored in open matrix format.
Larch includes a OMX reader, which also embeds a number of handy
tools for processing OMX data into formats useful for discrete choice
analysis.
End of explanation
larch.exampville.files.hh
hh = pandas.read_csv( larch.exampville.files.hh )
hh.info()
hh.head()
Explanation: Households
End of explanation
larch.exampville.files.person
pp = pandas.read_csv( larch.exampville.files.person )
pp.info()
pp.head()
Explanation: Persons
End of explanation
larch.exampville.files.tour
tour = pandas.read_csv( larch.exampville.files.tour )
tour.info()
tour.head()
Explanation: Tours
End of explanation
<END_TASK>