def __init__(self, input_csv_pattern=None, headers=None, bigquery=None):
    """
    Args:
      input_csv_pattern: Path to Csv file pattern (with no header). Can be local or GCS path.
      headers: Csv headers. Required if input_csv_pattern is not None.
      bigquery: Can be one of:
          A BigQuery query string.
          A Bigquery table string.
          A Query object defined with '%%bq query --name [query_name]'.

    Raises:
      ValueError if input_csv_pattern is provided but both headers and schema_file are None.
      ValueError if but both input_csv_pattern and bigquery are None.
    """

    self._input_csv_files = None
    self._bigquery = None
    if input_csv_pattern:
      self._input_csv_files = _util.glob_files(input_csv_pattern)
      if not headers:
        raise ValueError('csv requires headers.')
      self._headers = headers
    elif bigquery:
      self._bigquery = bigquery
    else:
      raise ValueError('Either input_csv_pattern or bigquery needs to be provided.')
def __init__ ( self , input_csv_pattern = None , headers = None , bigquery = None ) : self . _input_csv_files = None self . _bigquery = None if input_csv_pattern : self . _input_csv_files = _util . glob_files ( input_csv_pattern ) if not headers : raise ValueError ( 'csv requires headers.' ) self . _headers = headers elif bigquery : self . _bigquery = bigquery else : raise ValueError ( 'Either input_csv_pattern or bigquery needs to be provided.' )
Args:
      input_csv_pattern: Path to Csv file pattern (with no header). Can be local or GCS path.
      headers: Csv headers. Required if input_csv_pattern is not None.
      bigquery: Can be one of:
          A BigQuery query string.
          A Bigquery table string.
          A Query object defined with '%%bq query --name [query_name]'.

    Raises:
      ValueError if input_csv_pattern is provided but both headers and schema_file are None.
      ValueError if but both input_csv_pattern and bigquery are None.