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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for delay_finder-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0636117870abe56c6f9f4ef593126492c65063f8026cf366007b868afc9aa10e |
|
MD5 | 0b39e63c5285cba0fa15151d5876e1ee |
|
BLAKE2b-256 | dbe589a19b9fb3f1bc866618eba2cc2bd69fd80dc209956345b6ae1c6100deb2 |