Skip to main content

Analyze and predict airline delays!

Project description

delay_finder

codecov

Authors: Siddharth Balodi, Charles Benkard, Mikel Ibarra Gallardo, and Stephanie Ta.

delay_finder is DSCI 310 Group 17's Python package for analyzing, predicting, and visualizing data related to airline delay.

It has functions to read CSV files into a dataframe, filter dataframe columns, replace a value in a dataframe, split data into 80/20 testing and training sets, save a model as a pickle object and file, and make a histogram visualizing a numeric feature.

This package builds off of pandas, sci-kit learn, altair packages and Python's pickle library and makes workflow more efficient in analyzing, predicting, and visualizing data related to airline delay.

Installation

$ pip install delay_finder

Usage

delay_finder has multiple functions that can be used to analyze and visualize airline delay data.

Here are usage examples of two of our functions:

import pandas as pd
from delay_finder.filter_columns import filter_columns
from delay_finder.replace_value import replace_value

# Read in example data
df = pd.read_csv('candy_example_data.csv')

# Filter the example data to only have columns 'candy' and 'amount'
filtered_df = filter_columns(df, ['candy', 'amount'])

# Replace a value in a column of the example data, specifically 4 with 11 in the 'amount' column.
df_replace_kitkat_amount = replace_value(df, 'amount', 4, 11)

For usage examples of each function, please navigate to this file in our repository.

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

delay_finder was created by Siddharth Balodi, Charles Benkard, Mikel Ibarra Gallardo, and Stephanie Ta. The code is licensed under the terms of the MIT license.
The usage examples file in licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0). For more information, please see the license file.

Credits

delay_finder was created with cookiecutter and the py-pkgs-cookiecutter template.
The documentation and ci-cd workflow was adapted from Daniel Chen's pycounts-dan repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delay_finder-1.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

delay_finder-1.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file delay_finder-1.0.2.tar.gz.

File metadata

  • Download URL: delay_finder-1.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for delay_finder-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9a53fd24a6ae464e47a9a05f9cba3545767ff28e8839d05b2d67ce654db67e93
MD5 e7ced9b23c43a7d6a9512f5b72f707ec
BLAKE2b-256 c3ce179c3576521e520d561f65bac26eeed931287c36948d2c4bab4967e54cab

See more details on using hashes here.

File details

Details for the file delay_finder-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for delay_finder-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c81e432f0374d3606d6895ac982bc989cfd4dde2a53a4447396a5a28b189bd2
MD5 13c8297de18d6c1c1b9ca4ca7b1a6110
BLAKE2b-256 99b777c9176adb8101e477bea7c4ad32225fbba54e1c9d02343c1f31ea744d14

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page