Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add initial commit #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions data_loaders/csv_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,24 @@

class CsvLoader(DataLoader):
def __init__(self, name, delimiter):
"""
Reads the given csv file

@type name: str
@param name: the name of the csv file
@type delimiter: str
@param delimiter: the delimiter separating the column names in the csv file
"""

self.name1 = name
self.delim = delimiter

def load(self):
"""
Reads the csv file into a dataframe

@rtype: Pandas DataFrame
@returns: the pandas dataframe containing the read data from the csv file
"""

return (pd.read_csv(self.name1, self.delim))
6 changes: 3 additions & 3 deletions driver.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod
from processors.drop_close import DropClose
from processors.outlier_removal import GaussOutlierRemoval
from processors.outlier_removal import OutlierRemoval
from processors.distance_calculator import DistanceCalculator
from processors.step_range import StepRange
from processors.processor import Processor
Expand Down Expand Up @@ -138,10 +138,10 @@
file_ranger = StepRange(step_name = range_name, step_min = range_min, step_max = range_max, file = read_file)
file_ranged = file_ranger.process()

close_dropper = DropClose(dep_name = dep, d = distance_arr, tolerance = tol, file = file_ranged)
close_dropper = DropClose(dep_name = dep, dist_arr = distance_arr, tolerance = tol, file = file_ranged)
close_dropped = close_dropper.process()

outlier_remover = GaussOutlierRemoval(tolerance = outlier_tol, user_name = user, file = close_dropped)
outlier_remover = OutlierRemoval(tolerance = outlier_tol, user_name = user, file = close_dropped)
outlier_removed = outlier_remover.process()

distance = DistanceCalculator(lat_name = lat, long_name = lon, file = outlier_removed)
Expand Down
302 changes: 0 additions & 302 deletions lm.py

This file was deleted.

Loading