def camel_case ( self , snake_case ) : components = snake_case . split ( '_' ) return components [ 0 ] + "" . join ( x . title ( ) for x in components [ 1 : ] )
how to format text to capitalize in python
Convert snake case to camel case
def camel_case(self, snake_case):
        """ Convert snake case to camel case """
        components = snake_case.split('_')
        return components[0] + "".join(x.title() for x in components[1:])