I keep getting an error message when I type out the commands, can you please help?
Winte a program that performs the following tasks Load the pandas module Load the datanet in titanic cow wn titanic Create a new data frame. first south by sobsetting titanic to include instances where a passenger is in the first class cabin (pclass column in 1) and boarded from Southampton (emmbarked column is S) Create a new data frame. second third. by websetting titanic to include instances where a passenger in enher in the second ipclass column in 2) on third clean toclass column in ]) cabin Using the template from the Ink, create and upload the bar charts for the following passengers in first class who embarked in Sooffurston grouped by Dex potsengers in second and third claw grouped by survival matus The output thould BE dock " back town alive alone 1 1 1520 Boutharpbom False 11 10.0 Jourharpoon no [ comm M 18 columns; survived peless deck crback now alive alone mile 1 01: 30.0 Southampton Southerpron Southcampcan ACTIVITY 2 16 1 LAB Bar charts main py 1 import panda as pid 7 titanic . pd.read cool 'titanic.cav' ) frit south of [(of "pelass'] = 1 18 (ofI'mback_town" ] s'Southampton' )] second third df [ (of! 'pelass' ] me ?) | (del pilass'] - 3)] 9 # create a bar shurt for the first class prismyers who endorsed in Sothurston grouped by wes 10 It & create a bur chart for the second and third cluse passengers grouped By warvivid status Develop mode Submit mode Run your program as often as you'd like before submining for grading Below. type any needed input values in the frat box, then click Four program and obsess the program's output in the second box Emer program input (optional) If your code requited input volume provide from here Run program leput (from abowl crour proptamil -Output [shown below) Program errors displayed here Traceback (most recent call lame): File "main.py", line 5, in