File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,19 @@ Draw histograms with :meth:`~datascience.tables.Table.hist`:
258
258
@savefig hist_overlay.png width =4in
259
259
normal_data.hist(bins = range (- 5 , 10 ), overlay = True )
260
260
261
+ Draw grouped histograms with the ``group `` argument:
262
+
263
+ .. ipython :: python
264
+
265
+ grouped = Table().with_columns(
266
+ ' value' , np.random.normal(size = 100 ),
267
+ ' group' , np.random.choice([' A' , ' B' ], size = 100 )
268
+ )
269
+
270
+ @savefig hist_group.png width =4in
271
+ grouped.hist(' value' , group = ' group' )
272
+ Note: group cannot be used together with bin_column, and does not support multiple histogram columns.
273
+
261
274
If we treat the ``normal_data `` table as a set of x-y points, we can
262
275
:meth: `~datascience.tables.Table.plot ` and
263
276
:meth: `~datascience.tables.Table.scatter `:
You can’t perform that action at this time.
0 commit comments