Filter
LendingClub2 Filter Module
-
class
lendingclub2.filter.BorrowerEmployedTrait
Check if borrower is employed
-
matches(borrower)
Check if borrower has the trait
| Parameters: | borrower – instance of Borrower. |
| Returns: | boolean |
-
class
lendingclub2.filter.BorrowerTrait
Abstract base class to define borrowers of interest
-
matches(borrower)
Check if borrower has the trait
| Parameters: | borrower – instance of Borrower. |
| Returns: | boolean |
-
class
lendingclub2.filter.Filter
Abstract base class for filtering the loan
-
meet_requirement(loan)
Check if the loan is meeting the filter requirement
| Parameters: | loan – instance of Loan. |
| Returns: | boolean |
-
class
lendingclub2.filter.FilterByApproved
Filter by if the loan is already approved
-
meet_requirement(loan)
Check if the loan is meeting the filter requirement
| Parameters: | loan – instance of Loan. |
| Returns: | boolean |
-
class
lendingclub2.filter.FilterByBorrowerTraits(traits)
Filter to have borrower matching specific traits
-
meet_requirement(loan)
Check if the loan is meeting the filter requirement
| Parameters: | loan – instance of Loan. |
| Returns: | boolean |
-
class
lendingclub2.filter.FilterByFunded(percentage)
Filter by percentage funded
-
meet_requirement(loan)
The loan would have to be at least the percentage value to meet the
requirement.
| Parameters: | loan – instance of Loan. |
| Returns: | boolean |
-
class
lendingclub2.filter.FilterByGrade(grades=None)
Filter by grade
-
meet_requirement(loan)
Check if the loan is meeting the filter requirement
| Parameters: | loan – instance of Loan. |
| Returns: | boolean |
-
class
lendingclub2.filter.FilterByTerm(value=36, min_val=None, max_val=None)
Filter by term
-
meet_requirement(loan)
Check if the loan is meeting the filter requirement
| Parameters: | loan – instance of Loan. |
| Returns: | boolean |