

read_csv ( file, sep = ',', low_memory = False ) #A.1) COLUMN HEADERS: #print "\n (1) COLUMN HEADERS:" valsColumn = data = data #filter data frame to only county rows (those with countycode != 0) data = data #filter to "value" columns valsColumn = #drop the non-value columns #print valsColumn #A.2) TOTAL COUNTIES IN FILE: The total number of counties in the file. argv print "loading %s " % file data = pd. file = '2015 CHR Analytic Data.csv' if ( len ( sys.

Some steps from this setup the data for our hypothesis test so they are kept in this cell. The answer by is correct, but it assumes that you have already installed the CDF C Library.#ASSIGNMENT 1 Solution. Download the latest version of the CDF C Library: Here's an easy to follow guide if you didn't even know what the CDF file format was before you found this question on SO.ġ. You can find the latest stable release at this link. Grab the source code using wget, and extract it. Note: the following will create a directory in the current folder. if you want to download the code in a different path make sure you change the code below. SpacePy and the CDF Library have several dependencies (as pointed out by Dyzma). pip install numpy scipy h5py matplotlib networkxĪpt install build-essential gfortran libncurses5-dev You can install them all using conda or pip, and apt. You should have downloaded a README.install file that contains a lot more details on this step than I'll provide. The two cents are that you want to check which compile variables are required/optional for your system and needs.

I will be building the distribution for Linux using the GNU C compiler. I am not interested in the FORTRAN interface, and my operating system supports shareable libraries. Installation should run smooth and add all the files in the.Īs a result this is the final make command: make OS=linux ENV=gnu CURSES=yes FORTRAN=no UCOPTIONS=-O2 SHARED=yes -j4 all I want to install the Curses-based toolkit programs that allow to use the command-line based interactive CDF tools (that's why we installed libncurses5-dev dependency in step 2).
