Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How to use pandas to write a script for adding a new Column in a database?

Asked by Dia Shrinidhi Jul 16, 2024 703 views 1 answer
Share

About this question

 I am currently engaged as a data analyst for a particular retail company that tracks the review of the customers for their specific products. I have a dataset containing customer reviews in a pandas data frame called “reviews_df”. One of the columns, review_text includes the text of the reviews. My manager wants to analyze the length of each review to understand how detailed customers are in their feedback. By using pandas how can I write a script for adding a new Column to review_df named review_length which can contain the length of each review in the review_text Column? 

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.