Skip to content

LAANE Data Cleaning and Analysis #36

Closed

Description

@ryanmswan

Data Scientist

Project Name: LA Alliance for a New Economy, Housing Project

Volunteer Opportunity: Assist local nonprofit by joining several datasets that rely on physical street address as a primary identifier. After joining these data sets together, display on a map localized by approximate region the density of AirBnB rental properties in relation to properties cited for complaints in order to identify potential "party houses" that may not be in compliance with local ordinances.

Duration: 4-6 weeks

Who to communicate your interest to

  • Slack name of person to contact in the channel: Sophia Alice or Ryan Swan or post in [#data-science]

Primary Stakeholder: LAANE

Currently Staffed: @AlbertUlysses @karinalopez

Resources

Albert's video on using scripts he wrote for project

Activity

  1. KarinaLopez19 commented on Apr 29, 2021

    @KarinaLopez19

    Just a quick update:

    Albert and I are working to combine the airbnb listing dataset with permit dataset from the city of LA . Some complications we are handling include:

    • There are no shared columns in both the listing or permit datasets
    • Proximate coordinates are provided for listings while full addresses are provided for permit data

    Currently, we are trying to see if there are "obvious" citation breakers or followers that we can filter out immediately. Additionally, we are writing functions and a script to potentially merge the permit dataset with listing dataset using coordinate and address data in a single neighborhood. Once we are able to have a working script, we can apply it to the full datasets.

  2. AlbertUlysses commented on May 1, 2021

    @AlbertUlysses
    Member

    I added a new folder "airbnblistings" where Karina and I can upload our files related to the project and I created two functions that are going to help with data cleaning.
    The plan for now is to create a foundation for the project by cleaning the data and creating a sqlitedb .

  3. KarinaLopez19 commented on May 10, 2021

    @KarinaLopez19

    Cleaned up city of LA registrant dataset, merging all sheets into a single CSV file and revising mistyped entries. Next steps would include creating geolocations for each address, and connecting registrant entries with airbnb listing host IDs.

  4. KarinaLopez19 commented on May 26, 2021

    @KarinaLopez19

    Met with Jon to do final review of columns to keep vs. remove. Jon is onboard with having a SQLite database and is willing to learn SQL. Currently working on designing the SQLite database with Albert.

  5. AlbertUlysses commented on Jun 10, 2021

    @AlbertUlysses
    Member

    First iteration design is complete, will do some adjustments then start writing the scripts to transformer the data.

  6. KarinaLopez19 commented on Jun 11, 2021

    @KarinaLopez19

    Jon has been updated on progress and Albert and I will be meeting tomorrow to discuss next steps.

  7. KarinaLopez19 commented on Jun 22, 2021

    @KarinaLopez19

    Organized a sheet containing new table and column names following data warehouse schema to facilitate data transformation. Beginning data dictionary to pass along to Jon following completion of data warehouse. I will be taking a short break from 06/26-07/06 and have communicated this to Jon + Albert. Albert and I plan to complete data transformation scripts starting 07/07.

  8. AlbertUlysses commented on Jun 25, 2021

    @AlbertUlysses
    Member

    Here are some updates/milestones.

    For the next week and a half, Karina and I will be taking a break - we'll be meeting again starting on July 7th. I'll still be around if anyone needs anything, so feel free to email me.

    Milestones will be as follows:

    * By the end of next week (July 2nd), I'll have a finalized version of our data warehouse layout.
    * Starting on July 7th and until approximately two weeks after (July 21st). We'll be working on the code for our first tangible deliverable - an SQLite DB with some starter scripts. The starter scripts will answer some of the questions Jon sent earlier this year.
    * After this, we will be asking for some follow-up meetings to begin creating a software program where Jon can add new data to the database as it comes in. This next phase doesn't have an exact timeline, but we will most likely start meetings in the last week of July (26th-30th). 
    * The last week of July will also be our goal to have something written up about the project for Hack for LA and their Medium blog. The blog post will summarize the work we did, the problem(s), and how we solved it/them. If there is anything that anyone would like in it or off, let me know. Our post will also be a collaborative effort, so I'll reach out with rough drafts before publishing anything.
    
  9. AlbertUlysses commented on Jul 22, 2021

    @AlbertUlysses
    Member

    Working through assessor data, we did some ERD modifications and discussed how to handle unique entries.
    Notes and Rough draft of blog posts have started, but we are not prioritizing it because we are trying to focus our extra time on the first deliverable.

  10. AlbertUlysses commented on Aug 4, 2021

    @AlbertUlysses
    Member

    Quick update:
    reworked the project layout and added assessor transformations along with Tests. Going to try to work on several more datasources by the end of the week,and need to do some re-factoring, by then I'll have a better idea of a new time frame for the first deliverable. I will contact Jon in an email and include everyone by the end of week.

  11. AlbertUlysses commented on Aug 7, 2021

    @AlbertUlysses
    Member

    Hey @ryanmswan @salice ,
    here is a rough idea about what the hackforla blog post will be about. Let me know if this is more or less the idea you had or if there is some other angle I should include:

    Blog post idea:
    The blog post will mostly focus on what lessons I learned from the project.
    Things I learned are:
    How to optimize and test for Pandas - only used here and there mostly use PySpark. It is nice to learn about apply versus list comprehension versus str method chaining and the speed they each give. I also learned about the assert_series_equal/assert_frames_equal testing functions.
    I gained a lot from discussing the project with my teammate Karina and talking to Jon about what he needed.
    If there are any extra ideas, let me know, and I'll see if I can add them in.
    
  12. AlbertUlysses commented on Aug 14, 2021

    @AlbertUlysses
    Member

    @ryanmswan @salice
    Most of the transformations are complete - there is one data source that Karina was working on, and I'm waiting for that to be uploaded. Next week I'll be writing the code for entering the data into the SQLite database using SQL Alchemy.

  13. AlbertUlysses commented on Aug 19, 2021

    @AlbertUlysses
    Member

    I added the SQL Alchemy code, I need to add Air BnB tables into that file, and it might need some refactoring to reflect the database relationships.
    After, I'll work solely on the main program, which will go through all the files and insert them into the database.

  14. 19 remaining items

  15. akhaleghi commented on Jan 28, 2022

    @akhaleghi
    Contributor

    @KarinaLopez19 we want to add a "size" label to this, just so we can keep track of the number of hours it took. Do you have an estimate of how much time you and Albert spent on this, and how much more there is to go?

  16. akhaleghi commented on Apr 8, 2022

    @akhaleghi
    Contributor

    Hey @AlbertUlysses and @KarinaLopez19, please provide any appropriate updates on this issue in the comments, since we haven't had anything documented here for a few months now.

    Progress: "What is the current status of your project? What have you completed and what is left to do?"
    Blockers: "Difficulties or errors encountered."
    Availability: "How much time will you have this week to work on this issue?"
    ETA: "When do you expect this issue to be completed?"
    Pictures (if necessary): "Add any pictures that will help illustrate what you are working on."

  17. AlbertUlysses commented on Apr 8, 2022

    @AlbertUlysses
    Member

    Hi @akhaleghi
    I don't have any updates - from our last conversations this is the way the project should move forward:
    Karina -> add data dict

    Team -> reach out to LAANE to see if someone else on our team can do some analysis - last we spoke, Karina suggested that she might take this on.

    I don't know Karina's status, but if she's no longer contributing, maybe someone else is interested in taking the data and analyzing it? It definitely could be a good learning experience.

  18. mcmorgan27 commented on Apr 8, 2022

    @mcmorgan27
    Member
  19. AlbertUlysses commented on Apr 8, 2022

    @AlbertUlysses
    Member

    @mcmorgan27 Data should be in S3 - it's not open data - it's data from LAANE.
    I have no knowledge where specifically it's stored- I believe Sophia was the person in charge of storing that data - could be wrong.
    Also, I believe that the data wasn't stored more publicly because LAANE had some reservations in that regard.

  20. mcmorgan27 commented on Apr 8, 2022

    @mcmorgan27
    Member
  21. ExperimentsInHonesty commented on Apr 29, 2022

    @ExperimentsInHonesty
    Member

    We are going to close this issue. Can be reopened or referred to if stakeholder reaches back out to us. He has not responded to our requests for addional engagement.

  22. added
    feature: missingthis tags is mutually exclusive with project: missing. Please use the correct label
    on Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions