Skip to content

Commit 5e6aa52

Browse files
authored
Create Scatter_Plot_With_Trend_Line_Chat_effectiveness_User_satisfaction.py
1 parent 63273ea commit 5e6aa52

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import pandas as pd
2+
import matplotlib.pyplot as plt
3+
import seaborn as sns
4+
5+
6+
data = pd.read_csv('PEmpirical4.csv')
7+
data['Chat GPT effectiveness'] = pd.to_numeric(data['Chat GPT effectiveness'], errors='coerce')
8+
data['User satisfaction'] = pd.to_numeric(data['User satisfaction'], errors='coerce')
9+
data.dropna(subset=['Chat GPT effectiveness', 'User satisfaction'], inplace=True)
10+
11+
plt.figure(figsize=(10, 6))
12+
sns.regplot(x='Chat GPT effectiveness', y='User satisfaction', data=data, scatter_kws={'alpha':0.5})
13+
14+
15+
plt.title('Scatter Plot with Trend Line: Chat GPT effectiveness vs. User satisfaction')
16+
plt.xlabel('Chat GPT effectiveness')
17+
plt.ylabel('User satisfaction')
18+
19+
20+
plt.savefig('Scatter_Plot_With_Trend_Line_Chat_effectiveness_User_satisfaction.png', dpi=300, bbox_inches='tight')
21+
plt.show()

0 commit comments

Comments
 (0)