Coder Social home page Coder Social logo

jbi100_dashboard's Introduction

NYC AirBnB Analysis

About this app

Welcome to our dashboard. The goal of this dashboard is to be able to analyze data from AirBnB accommodations. The intended end-user is an host that has accommodations listed on the AirBnB website.

Requirements

How to run this app

We suggest you to create a virtual environment for running this app with Python 3. Clone this repository and open your terminal/command prompt in the root folder.

download a zip file of this folder, unzip it and copy it to a folder of choice on your computer

open a command prompt and run the following commands:

> cd <path to you folder of choice>\dashframework-main\dashframework-main 
> python -m venv venv

If python is not recognized use python3 instead

In Windows:

> venv\Scripts\activate

In Unix system:

> source venv/bin/activate

(Instead of a python virtual environment you can also use an anaconda virtual environment.

Requirements:

• Anaconda (https://www.anaconda.com/) or Miniconda (https://docs.conda.io/en/latest/miniconda.html)

• The difference is that Anaconda has a user-friendly UI but requires a lot of space, and Miniconda is Command Prompt based, no UI, but requires considerably less space.

Then you should replace the lines: python -m venv venv and venv\Scripts\activate or source venv/bin/activate with the following:

> conda create -n yourenvname
> conda activate yourenvname

)

Install all required packages by running:

> pip install -r requirements.txt

Run this app locally with:

> python app.py

You will get a http link, open this in your browser to see the results. You can edit the code in any editor (e.g. Visual Studio Code) and if you save it you will see the results in the browser.

Data preprocessing

Every action of cleaning is perfomed in the cleaning.py file. After cleaning the nan values and unnecessary attributes the dataset has been saved as a pickle file to avoid running the cleaning file every time. There's also some dataset exploration code (like descriptive statistics) at the end of the file. Codes in cleaning.py can be uncommented to see what changes have been made in the dataset. We also added a column with assigned neighbourhoods to make the accommodations compatible with the geojson geometry. (neighbourhood_fitter.py)

Code written by ourselves and "borrowed" code

app.py

We used the template code and made additions for our desired functionality and visualization. (Inherited initially from the framework)

pre_processing folder

Both files in this folder were written by us from scratch.

config.py

Written by ourselves. Holds out global configurations. (Inherited initially from the framework)

data.py

Written by ourselves. Holds the function that loads the data. (Inherited initially from the framework)

main.py

Title changed to our desired title. (Inherited initially from the framework)

menu.py

Changed according to our values and added two new dropdown menus. (Inherited initially from the framework)

scatterplot.py

Holds the definition of our plots (visualizations). Written by ourselves. (Inherited initially from the framework)

base.css

Not changed and originates from the framework as well.

style.css

Tweaked according to our preferred layout. (Inherited initially from the framework)

nyc-neighbourhoods.geo.json

Retreived from an external source as additional data (snd3 repo). See resources.

Resources

jbi100_dashboard's People

Contributors

deniz0zn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.