original_docstring: Pull git tag from parse_ddl table into a dataframe.
docstring: Pull git tag from parse_ddl table into a dataframe.
docstring_tokens: Pull git tag from parse_ddl table into a dataframe .
code: def read_tag_to_dataframe(git_repo, git_tag):
      """Pull git tag from parse_ddl table into a dataframe."""
      queryx = "select full_path,\
                dir_path,\
                file_name,\
                file_content,\
                file_content_hash,\
                file_size,\
                git_repo,\
                git_tag\
                from git_parse_ddl where git_tag = '{git_tag}'\
                and git_repo = '{git_repo}'"
      queryx = queryx.format(git_tag=git_tag, git_repo=git_repo)
      dfx = pd.read_sql(queryx, ENGINE)
      # Delete the second duplicate file_content_hash values from each dataframe.
      dfx = dfx.drop_duplicates(subset='file_content_hash', keep='first')
      
  
      # Remove certain directory paths the ~ is the opposite result set
      dfx = dfx[~dfx['dir_path'].str.contains('tSQLt_UnitTests')]
      dfx = dfx[~dfx['dir_path'].str.contains('Samples')]
      dfx = dfx[~dfx['dir_path'].str.contains('SolarWinds')]
      return dfx
code_tokens: def read_tag_to_dataframe ( git_repo , git_tag ) : queryx = "select full_path,\
                dir_path,\
                file_name,\
                file_content,\
                file_content_hash,\
                file_size,\
                git_repo,\
                git_tag\
                from git_parse_ddl where git_tag = '{git_tag}'\
                and git_repo = '{git_repo}'" queryx = queryx . format ( git_tag = git_tag , git_repo = git_repo ) dfx = pd . read_sql ( queryx , ENGINE ) dfx = dfx . drop_duplicates ( subset = 'file_content_hash' , keep = 'first' ) dfx = dfx [ ~ dfx [ 'dir_path' ] . str . contains ( 'tSQLt_UnitTests' ) ] dfx = dfx [ ~ dfx [ 'dir_path' ] . str . contains ( 'Samples' ) ] dfx = dfx [ ~ dfx [ 'dir_path' ] . str . contains ( 'SolarWinds' ) ] return dfx
short_docstring: Pull git tag from parse_ddl table into a dataframe.
short_docstring_tokens: Pull git tag from parse_ddl table into a dataframe .
comment: """Pull git tag from parse_ddl table into a dataframe."""$SEP$# Delete the second duplicate file_content_hash values from each dataframe.$SEP$# Remove certain directory paths the ~ is the opposite result set