GNU/Linux ◆ xterm-256color ◆ bash 497 views

(InfluxDB) [josevnz@dmaf5 InfluxDBIntro]$ scripts/police_cases_importer.py –help usage: Import the Hartford police incidents. API: https://docs.influxdata.com/influxdb/v2.4/api-guide/client-libraries/python/ Geolocation helper: https://github.com/aaliddell/s2cell DATASET: https://data.hartford.gov/api/views/889t-nwfu/rows.csv?accessType=DOWNLOAD Author: Jose Vicente Nunez (kodegeek.com@protonmail.com)

We are expecting to handle 12 columns:

Description Type Column #
Case_Number Number 1
Date Date & Time 2
Time_24HR Plain Text 3
Address Plain Text 4
UCR_1_Category Plain Text 5
UCR_1_Description Plain Text 6
UCR_1_Code Number 7
UCR_2_Category Plain Text 8
UCR_2_Description Plain Text 9
UCR_2_Code Number 10
Neighborhood Plain Text 11
geom Location 12
   [-h] --data_file DATA_FILE config

positional arguments: config Path to the configuration file

optional arguments: -h, –help show this help message and exit –data_file DATA_FILE

                    File with the code