def _to_pascal_case(snake_case):
 space_case = re.sub('_', ' ', snake_case)
 wordlist = []
 for word in space_case.split():
  wordlist.append(word[0].upper())
  wordlist.append(word[1:])
 return ''.join(wordlist)

def _to_pascal_case ( snake_case ) : space_case = re . sub ( '_' , ' ' , snake_case ) wordlist = [ ] for word in space_case . split ( ) : wordlist . append ( word [ 0 ] . upper ( ) ) wordlist . append ( word [ 1 : ] ) return '' . join ( wordlist )
convert a snake_case string to its pascalcase equivalent .