astroquery/xmatch/core.py
def _parse_text(self, text):
        """
        Parse a CSV text file that has potentially duplicated header names
        """
        header = text.split("\n")[0]
        colnames = header.split(",")
        for column in colnames:
            if colnames.count(column) > 1:
                counter = 1
                while colnames.count(column) > 0:
                    colnames[colnames.index(column)] = column + "_{counter}".format(counter=counter)
                    counter += 1
        new_text = ",".join(colnames) + "\n" + "\n".join(text.split("\n")[1:])
        result = ascii.read(new_text, format='csv', fast_reader=False)

        return result

        Parse a CSV text file that has potentially duplicated header names
        
Parse a CSV text file that has potentially duplicated header names
Parse a CSV text file that has potentially duplicated header names
def _parse_text(self, text):
        header = text.split("\n")[0]
        colnames = header.split(",")
        for column in colnames:
            if colnames.count(column) > 1:
                counter = 1
                while colnames.count(column) > 0:
                    colnames[colnames.index(column)] = column + "_{counter}".format(counter=counter)
                    counter += 1
        new_text = ",".join(colnames) + "\n" + "\n".join(text.split("\n")[1:])
        result = ascii.read(new_text, format='csv', fast_reader=False)
        return result
def _parse_text ( self , text ) : header = text . split ( "\n" ) [ 0 ] colnames = header . split ( "," ) for column in colnames : if colnames . count ( column ) > 1 : counter = 1 while colnames . count ( column ) > 0 : colnames [ colnames . index ( column ) ] = column + "_{counter}" . format ( counter = counter ) counter += 1 new_text = "," . join ( colnames ) + "\n" + "\n" . join ( text . split ( "\n" ) [ 1 : ] ) result = ascii . read ( new_text , format = 'csv' , fast_reader = False ) return result
Parse a CSV text file that has potentially duplicated header names
Parse a CSV text file that has potentially duplicated header names
"""
        Parse a CSV text file that has potentially duplicated header names
        """
self
text