Moving the python for processing Foursquare data into more manageable functions

Maybe I might make this a module later?

Project Scope and ToDos

  1. Create a new site
  2. Process the Foursquare data to a set of locations with additional data
  3. Set the data up so it can be put on a map (it needs lat and long)
  • Can be searched
  • Can show travel paths throughout a day

Day 3

Moving my work from the Jupyter Notebook into some more useful functions that make it easier to understand what is going on took some adjustments. I want to make the flow simpler and take less code as well. Some accidents along the way, but I think I have it working.

I wanted to flatten the items files as well as use the loop more simply to create a base object that is generic for multiple data files. This means changing some of the downstream functions as well.

I also want to make the whole project as flat as possible while providing some logical divisions for the files based on what needs to be imported and what the functions do.

I also took a look at what to do with the init file:

I ended up using it to refine the exposed API like so:

from .process_to_dfs import process_to_dfs, get_place_details
from .pull_in_data_files import pull_in_data_files

Ok, got the data retrieval and the processing into dataframes working now!

git commit -am "Process data files into data frames"