示例#1
0
 def _add_player_to_roster(self, first, last):
     roster = read_roster()
     if self._has_player(roster, first, last):
         return False
     row = pd.DataFrame({'First Name': first,
                         'Last Name': last},index=[0])
     for cname in roster.columns[2:]:
         row[cname] = 1
     roster = roster.append(row, ignore_index=True)
     write_roster(roster)
     return True