Solution Explanations: Basic Preprocessing Techniques
Review solution explanations for the code challenges on basic preprocessing techniques.
We'll cover the following...
Solution 1: Lowercasing text
Here’s the solution:
Press + to interact
main.py
feedback.csv
import pandas as pdfeedback_df = pd.read_csv('feedback.csv')feedback_df['feedback'] = feedback_df['feedback'].str.lower()print(feedback_df['feedback'])
Let’s go through the solution explanation:
Line 4: We convert the
feedback
column into lowercase using thestr.lower()
function. ... ...
Access this course and 1400+ top-rated courses and projects.