Contains the material for the GeoPandas Spring 2020 Workshop.
The workshop is divided into two parts. Part 1 regards the foundation of Pandas. Part 2 introduces GeoPandas. Both parts consists of a Jupyter notebook plus external data to be analyzed. The data is contained in this same repository, be sure to download the entire depository.
This workshop was created using Python 3.6, Pandas 1.0.3 and GeoPandas 0.7. The versions of Pandas and GeoPandas are critical for the correct execution of the code. You can follow the instructions below to get the correct versions on your machine or you can run the code on Google Collaboratory.
The notebooks require Pandas, GeoPandas, matplotlib and numpy. The code requires that your version of Pandas and GeoPandas is up to date. To be sure that is the case, you can use the Google Collaboratory version of the notebooks. To use the colaboratory version, it is sufficient to open the following links, let your browser load the file and click on the "open in colab" icon that will appear on top of the file:
If you prefer to use your local machine, then you can create a specific Anaconda environment with this line of code:
conda create -c conda-forge -n geopandas_workshop python=3.6 matplotlib numpy geoPandas pandas
It is important that you specify conda-forge as a channel in order to get the last version of GeoPandas. The default channel still distributes version 0.6 at this time. To activate the environment, you can use
conda activate geopandas_workshop
After this, you can download the entire repository with the "clone or download" green button on the right-upper corner of the repository homepage. Finally, you can use Jupyter Notebook or Jupyter Lab (both included with Ananconda) to open the local versions of the notebooks.
You can find the solutions to the exercises in the following links:
To see how the solutions work, you will have to copy paste the code in the original notebooks of the first / second part.