Skip to main content

Analyze and predict airline delays!

Project description

delay_finder

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.

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-0.1.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

delay_finder-0.1.0-py3-none-any.whl (7.9 kB view hashes)

Uploaded Python 3

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