Python ile veri analizi yapmak icin Pandas ve NumPy kutuphaneleri kullanilir.
Kurulum
# (c) CodeMareFi - codemarefi.com.tr
pip install pandas numpy matplotlibTemel Pandas Kullanimi
# (c) CodeMareFi - codemarefi.com.tr
import pandas as pd
import numpy as np
# DataFrame olustur
data = {'isim': ['Ali', 'Veli', 'Ayse'], 'yas': [25, 30, 28], 'sehir': ['Istanbul', 'Ankara', 'Izmir']}
df = pd.DataFrame(data)
print(df)
# Filtreleme
istanbul = df[df['sehir'] == 'Istanbul']
print(istanbul)
# Istatistik
print(df['yas'].mean()) # Ortalama yas© CodeMareFicodemarefi.com.tr