Skip to content

Commit 9bedb62

Browse files
committed
documentation
1 parent 71dc49f commit 9bedb62

File tree

6 files changed

+13
-16
lines changed

6 files changed

+13
-16
lines changed

README.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ pandas_streaming: streaming API over pandas
3939
:target: http://www.xavierdupre.fr/app/pandas_streaming/helpsphinx/all_notebooks_coverage.html
4040
:alt: Notebook Coverage
4141

42-
.. image:: https://api.codacy.com/project/badge/Grade/f53b7f4d6a0447aa9ce0c4ad5df659ef
43-
:target: https://www.codacy.com/app/sdpython/pandas_streaming?utm_source=github.com&utm_medium=referral&utm_content=sdpython/pandas_streaming&utm_campaign=Badge_Grade
44-
4542
.. image:: https://pepy.tech/badge/pandas_streaming/month
4643
:target: https://pepy.tech/project/pandas_streaming/month
4744
:alt: Downloads

_doc/sphinxdoc/source/index.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ pandas_streaming: streaming API over pandas
4040
:target: http://www.xavierdupre.fr/app/pandas_streaming/helpsphinx/all_notebooks_coverage.html
4141
:alt: Notebook Coverage
4242

43-
.. image:: https://api.codacy.com/project/badge/Grade/f53b7f4d6a0447aa9ce0c4ad5df659ef
44-
:target: https://www.codacy.com/app/sdpython/pandas_streaming?utm_source=github.com&utm_medium=referral&utm_content=sdpython/pandas_streaming&utm_campaign=Badge_Grade
45-
4643
.. image:: https://pepy.tech/badge/pandas_streaming
4744
:target: https://pypi.org/project/pandas_streaming/
4845
:alt: Downloads

pandas_streaming/df/dataframe.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,8 @@ def __getitem__(self, *args):
922922
offers for the operator ``[]``.
923923
"""
924924
if len(args) != 1:
925-
raise NotImplementedError("Only a list of columns is supported.")
925+
raise NotImplementedError( # pragma: no cover
926+
"Only a list of columns is supported.")
926927
cols = args[0]
927928
if isinstance(cols, str):
928929
# One column.
@@ -1022,7 +1023,7 @@ def add_column(self, col, value):
10221023
10231024
"""
10241025
if not isinstance(col, str):
1025-
raise NotImplementedError(
1026+
raise NotImplementedError( # pragma: no cover
10261027
"Only a column as a string is supported.")
10271028

10281029
if isfunction(value):
@@ -1144,7 +1145,7 @@ def sort_values(self, by, axis=0, ascending=True, kind='quicksort',
11441145
:return: streaming database
11451146
"""
11461147
if not isinstance(by, str):
1147-
raise NotImplementedError(
1148+
raise NotImplementedError( # pragma: no cover
11481149
f"Only one column can be used to sort not {by!r}.")
11491150
keys = {}
11501151
nans = []
@@ -1223,8 +1224,9 @@ def __init__(self, iter_creation, check_schema=True, stable=True):
12231224
StreamingDataFrame.__init__(
12241225
self, iter_creation, check_schema=check_schema, stable=stable)
12251226
if len(self.columns) != 1:
1226-
raise RuntimeError(
1227-
f"A series can contain only one column not {len(self.columns)!r}.")
1227+
raise RuntimeError( # pragma: no cover
1228+
f"A series can contain only one column not "
1229+
f"{len(self.columns)!r}.")
12281230

12291231
def apply(self, *args, **kwargs) -> 'StreamingDataFrame':
12301232
"""

pandas_streaming/df/dataframe_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def hash_floatl(c):
166166
elif t == object:
167167
df[c] = df[c].apply(hash_strl)
168168
else:
169-
raise NotImplementedError(
169+
raise NotImplementedError( # pragma: no cover
170170
f"Conversion of type {t} in column '{c}' is not implemented")
171171

172172
return df
@@ -452,10 +452,10 @@ def pandas_groupby_nan(df, by, axis=0, as_index=False, suffix=None, nanback=True
452452
res.grouper.groupings[0]._cache['result_index'] = (
453453
index.__class__(new_index))
454454
else:
455-
raise NotImplementedError(
455+
raise NotImplementedError( # pragma: no cover
456456
"NaN values not implemented for multiindex.")
457457
else:
458-
raise NotImplementedError(
458+
raise NotImplementedError( # pragma: no cover
459459
"Not implemented for type: {0}".format(
460460
type(res.grouper.groupings[0].grouper)))
461461
res.grouper._cache['result_index'] = res.grouper.groupings[0]._group_index

pandas_streaming/df/dataframe_io_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ def enumerate_json_items(filename, encoding=None, lines=False, flatten=False, fL
323323
current[curkey] = None # pylint: disable=E1137
324324
curkey = None
325325
else:
326-
raise ValueError(f"Unknown event '{event}'") # pragma: no cover
326+
raise ValueError(
327+
f"Unknown event '{event}'") # pragma: no cover
327328

328329

329330
class JsonIterator2Stream:

pandas_streaming/df/dataframe_split.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def sklearn_train_test_split(self, path_or_buf=None, export_method="to_csv",
4141
mode *append* and allows stream.
4242
"""
4343
if kwargs.get("stratify") is not None:
44-
raise NotImplementedError(
44+
raise NotImplementedError( # pragma: no cover
4545
"No implementation yet for the stratified version.")
4646
with warnings.catch_warnings():
4747
warnings.filterwarnings("ignore", category=ImportWarning)

0 commit comments

Comments
 (0)