Facts: - party: indian national congress - monarch: sri united kingdom , edward viii of the united kingdom chithira thirunal of travancore george v of the - predecessor: muhammad habibullah s. srinivasa iyengar - birth date: 12 november 1879 - profession: attorney-general , statesman - caption: '' 1940 portrait of sir c. p. ramaswami iyer , - order: diwan the viceroy of india law member of the executive council of of the governor of madras advocate-general of madras presidency travancore member of the executive council of - death date: 26 september 1966 - spouse: seethamma - term end: 19 august 1947 1936 10 march 1928 1923 - name: sir chetpat pattabhirama ramaswami iyer - premier: raja of panagal , p. subbarayan - death place: london , united kingdom - birth place: wandiwash , british india - signature: cp sign.jpg - successor: p. r. venkatarama sastri g. n. unnithan t. r. venkatarama sastri t. - nationality: british indian - alma mater: presidency college , madras - occupation: lawyer , - imagesize: 250px - residence: the grove , madras - children: c. c. r. sundaram r. pattabhiraman , c. r. venkata subban , - term start: 8 october 1936193119231920 - image: sircp.jpg - religion: hinduism - governor: freeman charles george todhunter -lrb- acting -rrb- , george goschen , freeman-thomas 2nd viscount goschen freeman freeman-thomas , 1st marquess of willingdon , 1st marquess of willingdon , sir Based on these bullet points, write a short biography describing the life of c. p. ramaswami iyer .
The answer to this question is:
'' sachivottama '' sir chetpat pattabhirama ramaswami iyer , kcsi , kcie -lrb- 12 november 1879 -- 26 september 1966 -rrb- , also called '' c. p. '' , was an indian lawyer , administrator and politician who served as the advocate-general of madras presidency from 1920 to 1923 , law member of the executive council of the governor of madras from 1923 to 1928 , law member of the executive council of the viceroy of india from 1931 to 1936 and the diwan of travancore from 1936 to 1947 .ramaswami iyer was born in 1879 in madras city and studied at wesley college high school and presidency college , madras before qualifying as a lawyer from the madras law college .he practised as a lawyer in madras and succeeded s. srinivasa iyengar as the advocate-general of the madras presidency .he subsequently served as the law member of the governor of madras and the viceroy of india before being appointed diwan of travancore in 1936 .ramaswami iyer served as diwan from 1936 to 1947 ; during his tenure , many social and administrative reforms were made .however , at the same time , he is also remembered for the ruthless suppression of the communist-organised punnapra-vayalar revolt , and his controversial stand in favour of an independent travancore .he resigned in 1947 following a failed assassination attempt .he served as a leader of the indian national congress in his early days .he was made a knight commander of the indian empire in 1926 and a knight commander of the star of india in 1941 .he returned these titles when india attained independence in 1947 .he was also a member of the 1926 and 1927 delegations to the league of nations .in his later life he served in numerous international organisations and on the board of several indian universities .ramaswami iyer died in 1966 at the age of 86 while on a visit to the united kingdom .