Code Monkey home page Code Monkey logo

ntcode12-_numpy_amsterdam_airbnb's Introduction

Numpy and Numba Skills Refresh with Airbnb Amsterdam Data

This project was an opportunity for me to refresh my skills in Numpy and Numba. The project involved the use of a dataset of Airbnb listings in Amsterdam, which I cleaned and transformed using Numpy.

I used NumPy and Numba to improve the performance of a function that calculates the distance from an Airbnb listing to a specific location (the Johan Cruijff ArenA).

To improve the performance of the distance calculation function, the first step was to vectorize the calculation using NumPy. This allowed for much faster calculations by taking advantage of NumPy's ability to operate on entire arrays at once, rather than looping through each element individually.

Next, the Numba package was used to further improve performance by compiling the vectorized calculation into machine code. This allowed the function to run even faster, making it suitable for use in larger datasets.

The streamlit app was then used to visualize the data, which included a histogram showing the distribution of prices and a map showing the locations of the Airbnb listings and the chosen location. This allowed for easy exploration of the data and provided valuable insights into the listings available.

Overall, this project was a great way to refresh and improve my skills with NumPy and Numba, and showed the power of these tools in improving the performance of data analysis functions.

ntcode12-_numpy_amsterdam_airbnb's People

Contributors

ntcode12 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.