Adapted from https://github.com/mattpiccolella/stop-and-frisk
The NYPD_DataSet-XY-TO-Long-Lat-Converter contains all necessary files (aside from the dependencies).
Change your working directory to the folder in which you have xy_to_long_lat_conveter.py
To install all necessary packages to run xy_to_long_lat_conveter.py please utilize the following command:
install -r requirements.txt
Once you have successfully setup xy_to_long_lat_conveter.py, you may use the following command to convert an input .csv file from the NYPD's Stop Question and Frisk Data:
python xy_to_long_lat_conveter.py [input_file.csv] [output_file.csv]
Note that not all files from the NYPD's Stop Question and Frisk Data Website are in a .csv format. You will need to convert them to be compatible with this program. You may do so via Microsoft's Excel or any other .csv conversion program.