Changes

Jump to navigation Jump to search
256 bytes added ,  16:27, 28 March 2019
no edit summary
03/28/2019 UPDATE
All the dataset (17 of them) from the API has been copied to the PostgreSQL server in drive Z under /bulk/crunchbase3. To make date-time format in postgres works properly, all the empty string with quotes ("") in CSV files have been replaced by NULL with the command line
sed 's/""//g' file_clean.csv >file_clean.csv
The script that I used to do that is in the file clean_data.sh in E:/projects/crunchbase3. A shorter script to do that for all the files in the directory is possible but might not be necessary and not all files require such edit. All the scripts in load_crunchbase.sql have been updated. It now works perfectly with the current data crawled from crunchbaseAPI and includes the correct number of rows copied from the csv filesat the end of each \COPY command. I have also double-checked each table by comparing the postgres version of the data and the pandas version of the data.
To see the data in the postgres:
82

edits

Navigation menu