-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conforms to D3M API now; changed to python 3.6
- Loading branch information
1 parent
15b6a47
commit 3247d5b
Showing
6 changed files
with
1,305 additions
and
57 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Some utilities for this class""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pandas as pd | ||
|
||
|
||
class Utilities(object): | ||
|
||
def csv_to_dataframe(self, path_to_csv): | ||
data = pd.read_csv(path_to_csv) # all read as str | ||
return data | ||
|
||
@staticmethod | ||
def is_number(s): | ||
# type: (number) -> number | ||
try: | ||
float(s) | ||
return True | ||
except ValueError: | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
numpy==1.13.1 | ||
pandas==0.20.3 | ||
python-dateutil==2.6.1 | ||
pytz==2017.2 | ||
scipy==0.19.1 | ||
six==1.10.0 | ||
sklearn==0.0 | ||
nose==1.3.7 |
Oops, something went wrong.