Bir sütünün değerlerine yönelik analiz yöntemleri:
1-) Bir sütünda kullanılan benzersiz değerler kümesi:
df.cylinders.unique()
Çıktı:
array([8, 4, 6, 3, 5])
2-) Benzersiz değerlerin ne kadar tekrarlandığının tablosu:
df.cylinders.value_counts()
Çıktı:
4 199 8 103 6 83 3 4 5 3 Name: cylinders, dtype: int64
3-) Grafige dokme:
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt plt.figure(figsize=(10,5)) sns.countplot(x="cylinders",data=df, palette="cubehelix") plt.show()
Çıktı:
0 Comments
Recommended Comments
There are no comments to display.