Which of the following expression is used to add a new column 'C' to a data frame df, with three rows?Questions & Answers › Category: Programming Language › Which of the following expression is used to add a new column 'C' to a data frame df, with three rows? 0 Vote Up Vote Down Adam asked 3 years ago Which of the following expression is used to add a new column ‘C’ to a data frame df, with three rows? a. df.ix[‘C’] = [12, 98, 45] b. df.loc[‘C’] = [12, 98, 45] c. df[‘C’] = [12, 98, 45] d. df.iloc[‘C’] = [12, 98, 45]Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...1 Answers 0 Vote Up Vote Down Lokesh Kumar Staff answered 3 years ago c. df[āCā] = [12, 98, 45]Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...