Coder Social home page Coder Social logo

data-wrangling-api's Introduction

Data-Wrangling-API

  • Code repository for the Data Wrangling module's project of the Data Science course from the Dev.F platform.
  • Repositorio de codigo del proyecto perteneciente al modulo de Data Wrangling para el curso de Data Science por parte de Dev.F

Desarrollo del proyecto

Data sourcing [data_sourcing.py]

  1. Obtención de datos
  2. Escritura a base de datos
    • Conexión a MongoDB mediante cliente de pymongo
    • Inserción de los datos como un JSON a una nueva coleccion dentro de una nueva base de datos

Data cleaning

  1. Obtencion de datos mediante una consulta en una nueva conexion al cliente de MongoDB
  2. Limitado de set de datos a exclusivamente jugadores con Status actual igual a Active: dataset = col.find({'Status': 'Active'})
  3. Delimitación de columnas con una lista de columnas deseadas: dataframe.loc[:, columns_to_keep]

API declaration [main.py]

  1. Iniciación de app con el web framework FastAPI
  2. Creación de logica mediante uso de Pandas DataFrames para las respuestas en multiples casos
  3. Declaración de endpoints y su retorno respectivo para cada caso
  4. Documentación

API hosting [Spacefile]


Project Development

Data sourcing [data_sourcing.py]

  1. Data acquisition
  2. Writing to the database
    • Connected to MongoDB using the pymongo client
    • Inserted the data as a JSON into a new collection within a new database

Data cleaning

  1. Retrieveed data through a query in a new connection to the MongoDB client
  2. Limited the dataset to only players with the current Status equal to Active: dataset = col.find({'Status': 'Active'})
  3. Column delimitation with a list of desired columns: dataframe.loc[:, columns_to_keep]

API declaration [main.py]

  1. Initialized the app with the FastAPI web framework
  2. Created the logic for multiple request cases using Pandas DataFrames for the response
  3. Declared the endpoints and their respective return for each case
  4. Documentation

API hosting [Spacefile]


Extras

  • List of options to pass as the parameter {team}. NFL teams abbreviation codes
  • List of options to pass as the parameter {position} (G replaces OL, and DB is the aggregate of CB and S). NFL abbreviation legend
  • The {weight} parameter represents pounds of weight.

data-wrangling-api's People

Contributors

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