Repository navigation
Releases: WithPrecedent/crimepy
Releases · WithPrecedent/crimepy
Release list
Release: 0.2.0
- Breaking: crimepy keeps its data in amos's workspace (amos 0.6.0), not
in a "crimepy_data" folder of the home folder. The data folder is now the
"crime" folder (options.DATA_SUBFOLDER) of the data folder of the
workspace that holds the "code" folder (such as "projects/data/crime" for
code in "projects/code"; see amos'sClerk), so NIBRS is in
"data/crime/nibrs", beside the "studies" folder of amos projects' results.
CRIMEPY_DATA,options.DATA_FOLDER(nowNoneunless
CRIMEPY_DATAis set), and afolderargument still name another. Move
an existing "crimepy_data" folder's "nibrs" folder there (or set
CRIMEPY_DATA) to keep its downloads and tables. Requires amos 0.6.0.
Release: 0.1.0
- Breaking:
crimepyis built onamosdatasets.
crimepy.nibrs.load,load_tables,read, andtables.build(and its
builders) returnamos.Datasets, whosedatais the table, and take
label,task, andgroupsfor modeling.crimepy.nibrs.load_frame
returns a plain data frame, asloaddid.crimepy.combine.stackand
mergereturn datasets, andcrimepy.analyze.countreturns a new dataset
of counts, whose label is the counts. - Every analysis is an
amostechnique:population_rates,crime_rates,
percent_change,crosstab, andcoveragejoincount_crimes,
crime_trend, andclearance_rates. The functions ofcrimepy.analyze
apply them, take datasets or data frames, and keep their tables in a
dataset'stables.crime_ratesloads the agencies of the data's years
and states when it is given none. - The functions of
crimepy.plottake datasets, which keep their figures in
figures, andcrimepy.nibrs.decodedecodes a dataset in place. - Downloads of master files that break (as they do when the CDE's 15-minute
link expires during a slow download) resume where they stopped, with a new
link. crimepyrequiresamos0.4.1.- The README has a BibTeX entry for citing
crimepy, andCITATION.cffhas
the date of the release.