Associate Consultant 1

filter-iconFilter interviews by

Associate Consultant 1 Interview Questions and Answers

Updated 4 Dec 2021

Q1. How will you add and remove columns from pandas dataframe.

Ans.

To add or remove columns from a pandas dataframe, we can use the 'drop' and 'insert' methods.

  • To remove a column, we can use the 'drop' method with the 'axis' parameter set to 1.

  • To add a column, we can simply assign a new column to the dataframe with a name and values.

  • To insert a column at a specific position, we can use the 'insert' method with the index and column name.

  • We can also rename columns using the 'rename' method.

Q2. What are the difference between List and Tuples?

Ans.

Lists are mutable while Tuples are immutable.

  • Lists use square brackets [] while Tuples use parentheses ().

  • Lists can be modified while Tuples cannot be modified.

  • Lists are used for homogenous items while Tuples are used for heterogenous items.

  • Lists are slower than Tuples.

  • Example of List: my_list = [1, 2, 3]

  • Example of Tuple: my_tuple = (1, 'hello', 3.4)

Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 739 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Recently Viewed
SALARIES
EXL Service
SALARIES
EXL Service
SALARIES
EXL Service
SALARIES
Accenture
COMPANY BENEFITS
Accenture
No Benefits
SALARIES
Dell EMC
JOBS
Accenture
No Jobs
SALARIES
EXL Service
SALARIES
Genpact
DESIGNATION
Associate Consultant 1 Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter