Coverage for pandas_streaming/exc/exc_streaming.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-07-01 14:15 +0200

1# -*- coding: utf-8 -*- 

2""" 

3@file 

4@brief Defines a streming dataframe. 

5""" 

6 

7 

8class StreamingInefficientException(Exception): 

9 """ 

10 Kind of operations doable with a :epkg:`pandas:DataFrame` 

11 but which should not be done in streaming mode. 

12 """ 

13 

14 def __init__(self, meth): 

15 """ 

16 This method is inefficient in streaming mode 

17 and not implemented. 

18 

19 :param meth: inefficient method 

20 """ 

21 Exception.__init__( 

22 self, f"{meth} should not be done in streaming mode.")