parameters: (engine: str)
docstring: return our implementation
docstring_summary: return our implementation
docstring_tokens: return our implementation
function: def get_engine(engine: str) -> "BaseImpl":
      """ return our implementation """
  
      if engine == "auto":
          engine = get_option("io.parquet.engine")
  
      if engine == "auto":
          # try engines in this order
          try:
              return PyArrowImpl()
          except ImportError:
              pass
  
          try:
              return FastParquetImpl()
          except ImportError:
              pass
  
          raise ImportError(
              "Unable to find a usable engine; "
              "tried using: 'pyarrow', 'fastparquet'.\n"
              "pyarrow or fastparquet is required for parquet "
              "support"
          )
  
      if engine == "pyarrow":
          return PyArrowImpl()
      elif engine == "fastparquet":
          return FastParquetImpl()
  
      raise ValueError("engine must be one of 'pyarrow', 'fastparquet'")
function_tokens: def get_engine ( engine : str ) -> "BaseImpl" : if engine == "auto" : engine = get_option ( "io.parquet.engine" ) if engine == "auto" : # try engines in this order try : return PyArrowImpl ( ) except ImportError : pass try : return FastParquetImpl ( ) except ImportError : pass raise ImportError ( "Unable to find a usable engine; " "tried using: 'pyarrow', 'fastparquet'.\n" "pyarrow or fastparquet is required for parquet " "support" ) if engine == "pyarrow" : return PyArrowImpl ( ) elif engine == "fastparquet" : return FastParquetImpl ( ) raise ValueError ( "engine must be one of 'pyarrow', 'fastparquet'" )