Skip to content

Commit f6bb142

Browse files
committed
ruff
1 parent 25051f8 commit f6bb142

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pandas_streaming/df/connex_split.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def train_test_split_weights(
6161
f"test_size={test_size} or train_size={train_size} cannot be null (1)."
6262
)
6363
from sklearn.model_selection import train_test_split
64+
6465
return train_test_split(
6566
df, test_size=test_size, train_size=train_size, random_state=random_state
6667
)

pandas_streaming/df/dataframe_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ def hash_floatl(c):
155155
} # pylint: disable=R1721
156156
for c in cols:
157157
t = coltype[c]
158-
if t == int: # noqa: E721
158+
if t == int: # noqa: E721
159159
df[c] = df[c].apply(hash_intl)
160160
elif t == numpy.int64:
161161
df[c] = df[c].apply(lambda x: numpy.int64(hash_intl(x)))
162-
elif t == float: # noqa: E721
162+
elif t == float: # noqa: E721
163163
df[c] = df[c].apply(hash_floatl)
164-
elif t == object: # noqa: E721
164+
elif t == object: # noqa: E721
165165
df[c] = df[c].apply(hash_strl)
166166
else:
167167
raise NotImplementedError( # pragma: no cover

0 commit comments

Comments
 (0)