File size: 5,463 Bytes
99a0c40 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
{
"📊 Temel & Dagilim": {
"scatter": {
"label": "Scatter Plot",
"when_to_use": "İki sayısal değişken arasındaki ilişkiyi ve dağılımı incelemek için kullanılır.",
"inputs": ["x", "y"],
"options": {
"color": "tab:blue",
"size": 40,
"alpha": 0.7
},
"code_template": "ax.scatter({x}, {y}, c={color}, s={size}, alpha={alpha})"
},
"line": {
"label": "Line Plot",
"when_to_use": "Zamana veya sıralı bir değişkene bağlı değişimi göstermek için uygundur.",
"inputs": ["x", "y"],
"options": {
"color": "tab:red",
"linewidth": 2
},
"code_template": "ax.plot({x}, {y}, color={color}, linewidth={linewidth})"
},
"bar": {
"label": "Bar Plot",
"when_to_use": "Kategorilere göre sayısal değerleri karşılaştırmak için kullanılır.",
"inputs": ["x", "y"],
"options": {
"color": "tab:green"
},
"code_template": "ax.bar({x}, {y}, color={color})"
},
"barh": {
"label": "Horizontal Bar Plot",
"when_to_use": "Uzun kategori isimlerinde yatay karşılaştırma için tercih edilir.",
"inputs": ["x", "y"],
"options": {
"color": "tab:purple"
},
"code_template": "ax.barh({x}, {y}, color={color})"
},
"hist": {
"label": "Histogram",
"when_to_use": "Tek bir sayısal değişkenin dağılımını incelemek için kullanılır.",
"inputs": ["x"],
"options": {
"bins": 20,
"color": "tab:blue",
"alpha": 0.7
},
"code_template": "ax.hist({x}, bins={bins}, color={color}, alpha={alpha})"
},
"box": {
"label": "Boxplot",
"when_to_use": "Dağılım, medyan ve aykırı değerleri görmek için kullanılır.",
"inputs": ["y"],
"options": {},
"code_template": "ax.boxplot({y})"
},
"violin": {
"label": "Violin Plot",
"when_to_use": "Dağılımın yoğunluk yapısını detaylı görmek için kullanılır.",
"inputs": ["y"],
"options": {},
"code_template": "ax.violinplot({y})"
},
"hexbin": {
"label": "Hexbin Plot",
"when_to_use": "Yoğun veri noktalarında scatter yerine tercih edilir.",
"inputs": ["x", "y"],
"options": {
"gridsize": 30,
"cmap": "Blues"
},
"code_template": "ax.hexbin({x}, {y}, gridsize={gridsize}, cmap={cmap})"
}
},
"📈 Iliski & Yogunluk": {
"errorbar": {
"label": "Error Bar",
"when_to_use": "Ölçüm belirsizliği veya hata payı olan verilerde kullanılır.",
"inputs": ["x", "y"],
"options": {
"yerr": "None"
},
"code_template": "ax.errorbar({x}, {y}, yerr={yerr}, fmt='o')"
},
"stem": {
"label": "Stem Plot",
"when_to_use": "Ayrık veri noktalarının büyüklüğünü vurgulamak için kullanılır.",
"inputs": ["x", "y"],
"options": {},
"code_template": "ax.stem({x}, {y})"
},
"step": {
"label": "Step Plot",
"when_to_use": "Basamaklı değişimleri göstermek için uygundur.",
"inputs": ["x", "y"],
"options": {},
"code_template": "ax.step({x}, {y})"
},
"fill_between": {
"label": "Fill Between",
"when_to_use": "İki eğri veya sıfır ile alan doldurmak için kullanılır.",
"inputs": ["x", "y"],
"options": {
"alpha": 0.4
},
"code_template": "ax.fill_between({x}, {y}, alpha={alpha})"
}
},
"🧭 Zaman Serisi & Istatistik": {
"rolling_mean": {
"label": "Rolling Mean",
"when_to_use": "Zaman serilerinde trendi yumuşatarak görmek için kullanılır.",
"inputs": ["y"],
"options": {
"window": 5
},
"code_template": "ax.plot({y}.rolling(window={window}).mean())"
},
"lag_plot": {
"label": "Lag Plot",
"when_to_use": "Zaman serilerinde otokorelasyonu görsel olarak incelemek için kullanılır.",
"inputs": ["y"],
"options": {
"lag": 1
},
"code_template": "ax.scatter({y}.shift({lag})[ {lag}: ], {y}[ {lag}: ])"
}
},
"🎯 Kategorik & Ozel": {
"pie": {
"label": "Pie Chart",
"when_to_use": "Bir bütünün parçalara oranını göstermek için kullanılır.",
"inputs": ["y"],
"options": {
"startangle": 90,
"autopct": "%1.2f%%"
},
"code_template": "ss={y}.value_counts(); ax.pie(ss, labels=ss.index, autopct={autopct})"
},
"donut": {
"label": "Donut Chart",
"when_to_use": "Pie chart'ın daha modern ve okunabilir hâlidir.",
"inputs": ["x", "y"],
"options": {},
"code_template": "wedges, _ = ax.pie({y}, labels={x}); centre = plt.Circle((0,0),0.6,fc='white'); ax.add_artist(centre)"
}
},
"🧠 Korelasyon": {
"correlation_heatmap": {
"label": "Correlation Heatmap",
"when_to_use": "Sayısal değişkenler arasındaki korelasyon ilişkilerini görmek için kullanılır.",
"inputs": [],
"options": {
"cmap": "coolwarm"
},
"code_template": "corr = df.select_dtypes(include='number').corr(); im = ax.imshow(corr, cmap={cmap}); ax.set_xticks(range(len(corr.columns))); ax.set_yticks(range(len(corr.columns))); ax.set_xticklabels(corr.columns, rotation=90); ax.set_yticklabels(corr.columns); plt.colorbar(im, ax=ax)"
}
}
}
|