Skip to content

Commit 9c40f59

Browse files
authored
Merge pull request #265 from AbuBakkar32/Abu-Bakkar
spark Practice-01.py
2 parents db27280 + d053321 commit 9c40f59

4 files changed

Lines changed: 1149 additions & 3 deletions

File tree

Pandas/Using Pandas and Seaborn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def Age_groups(age):
1414
return 'Old'
1515

1616

17-
people['Age Groupe'] = people['Age'].apply(Age_groups)
17+
people['Age Group'] = people['Age'].apply(Age_groups)
1818
people['Activity Level'] = people['Miles'].apply(lambda x: 'active' if x > 1 else 'inactive')
1919
print(people)
2020

21-
sns.countplot(x='Age Groupe', hue='Activity Level', data=people)
21+
sns.countplot(x='Age Group', hue='Activity Level', data=people)
2222
plt.show()

Pandas/order_data_output.xlsx

63.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)