@@ -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 """
0 commit comments