Last active
November 12, 2024 12:51
-
-
Save mertdurukan/389ce251515ff3534b2e2bfb9f1563dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = pd.DataFrame({ | |
'isim': ['Ali', 'Ayşe', 'Fatma', 'Mehmet'], | |
'cinsiyet': ['Erkek', 'K', 'Kadın', 'E'] | |
}) | |
# Tutarsız değerleri "Erkek" veya "Kadın" olarak birleştirme | |
data['cinsiyet'] = data['cinsiyet'].replace({'E': 'Erkek', 'K': 'Kadın'}) | |
print(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment