This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements cleaner spec of reuse_functions, moves and renames
This is a log nicer. See discussion here for full context: #86.
- Loading branch information
1 parent
dcfb43c
commit 2fed9f8
Showing
5 changed files
with
175 additions
and
202 deletions.
There are no files selected for viewing
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
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
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,12 @@ | ||
import abc | ||
from typing import Type | ||
|
||
|
||
class DataLoader(abc.ABC): | ||
def applies_to(self, type_: Type[Type]) -> bool: | ||
"""This tells whether this data loader can load in the format required. | ||
Say, for instance, you want to load into a pandas dataframe. This would | ||
have to return True for pandas.DataFrame. | ||
:param type_: Type to test against | ||
:return: Whether or not this data loader can produce data in the desired format. | ||
""" |
Oops, something went wrong.