Should Data Pipelines In Python Be Function Based Or Object Oriented

Should Data Pipelines In Python Be Function Based Or Object Oriented