Page 226 - Touhpad Ai
P. 226
cleaned_tools = [tool.strip().lower() for tool in all_tools if tool.strip()]
# Step 3: Count frequency of each tool
tool_counts = Counter(cleaned_tools)
# Step 4: Convert to DataFrame and get top 5
top_5_tools = pd.DataFrame(tool_counts.items(), columns=['Tool', 'Count'])
top_5_tools = top_5_tools.sort_values(by='Count', ascending=False).head(5)
top_5_tools.reset_index(drop=True, inplace=True)
print(top_5_tools)
Output:
Tool Count
0 chatgpt 1557
1 copilot 1516
2 gemini 1409
3 midjourney 371
4 claude 171
Let us also create simple visualization using Matplotlib library
import matplotlib.pyplot as plt
# Plot
plt.figure(figsize=(8, 5))
top_5_tools.set_index('Tool')['Count'].plot(
kind='bar',
color='skyblue',
title='Top 5 AI Tools Used by Indian Students'
)
plt.xlabel('AI Tool')
plt.ylabel('Number of Users')
plt.xticks(rotation=45)
plt.tight_layout()
plt.show()
Output:
Top 5 AI Tools Used by Indian Students
1600
1400
Number of Users 1200
1000
800
600
400
200
0
chatgpt copilot gemini midjourney claude
AI Tool
224 Touchpad Artificial Intelligence - XI

