Skip to content

Commit eac4674

Browse files
author
RJ Agrawal
committed
fixed lint issues and README
1 parent ae02213 commit eac4674

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,13 @@ NumericalTransformer takes function name as a string parameter and hence can be
382382
... ])
383383
>>> mapper5.fit_transform(data)
384384
array([[1.38629436],
385-
[1.79175947],
386-
[1.09861229],
387-
[1.09861229],
388-
[0.69314718],
389-
[1.09861229],
390-
[1.60943791],
391-
[1.38629436]])
385+
[1.79175947],
386+
[1.09861229],
387+
[1.09861229],
388+
[0.69314718],
389+
[1.09861229],
390+
[1.60943791],
391+
[1.38629436]])
392392

393393

394394

sklearn_pandas/transformers.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22
import pandas as pd
3+
from sklearn.base import TransformerMixin
34

4-
from sklearn.base import BaseEstimator, TransformerMixin
55

66
def _get_mask(X, value):
77
"""
@@ -25,12 +25,13 @@ def __init__(self, func):
2525
"""
2626
Params
2727
28-
func function to apply to input columns. The function will be applied to each value.
29-
Supported functions are defined in SUPPORTED_FUNCTIONS variable. Throws assertion
30-
error if the not supported.
28+
func function to apply to input columns. The function will be
29+
applied to each value. Supported functions are defined
30+
in SUPPORTED_FUNCTIONS variable. Throws assertion error if the
31+
not supported.
3132
"""
3233
assert func in self.SUPPORTED_FUNCTIONS, \
33-
f"Only following func arguments are supported: {self.SUPPORTED_FUNCTIONS}"
34+
f"Only following func are supported: {self.SUPPORTED_FUNCTIONS}"
3435
super(NumericalTransformer, self).__init__()
3536
self.__func = func
3637

0 commit comments

Comments
 (0)