octaviancorlade commented on issue #13968: URL: https://github.com/apache/superset/issues/13968#issuecomment-814777902
Here are some screenshots and links to reproduce locally with the example
data of the ones using `df.pivot_table()` in `viz.py`, only Big Number and
Time-series Period Pivot seem to handle the situation currently.
I am not sure if I'm missing something since the Pivot Table generates
errors here, maybe the screenshots by @kgabryje are both not yet in master?
[Time-series
Table](http://localhost:8088/superset/explore/?form_data=%7B%22viz_type%22%3A%22time_table%22%2C%22datasource%22%3A%2219__table%22%2C%22slice_id%22%3A82%2C%22url_params%22%3A%7B%7D%2C%22time_range_endpoints%22%3A%5B%22inclusive%22%2C%22exclusive%22%5D%2C%22granularity_sqla%22%3A%22time_start%22%2C%22time_grain_sqla%22%3A%22P1D%22%2C%22time_range%22%3A%22No+filter%22%2C%22metrics%22%3A%5B%7B%22expressionType%22%3A%22SQL%22%2C%22sqlExpression%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22column%22%3Anull%2C%22aggregate%22%3Anull%2C%22isNew%22%3Afalse%2C%22hasCustomLabel%22%3Afalse%2C%22label%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22optionName%22%3A%22metric_k65my36ei5e_qiwcw5ofy4m%22%7D%5D%2C%22adhoc_filters%22%3A%5B%5D%2C%22groupby%22%3Anull%2C%22limit%22%3A100%2C%22column_collection%22%3A%5B%7B%22key%22%3A%22jTqUEXjNb%22%7D%5D%2C%22row_limit%22%3A10000%2C%22extra_form_data%22%3A%7B%22custom_form_data%22%3A%7B%7D%2C%22override_form_data%22%3A%7B%7D%2C%22append_form_data%22%3A
%7B%7D%7D%7D)

[Pivot
Table](http://localhost:8088/superset/explore/?form_data=%7B%22viz_type%22%3A%22pivot_table%22%2C%22datasource%22%3A%2219__table%22%2C%22slice_id%22%3A82%2C%22url_params%22%3A%7B%7D%2C%22time_range_endpoints%22%3A%5B%22inclusive%22%2C%22exclusive%22%5D%2C%22granularity_sqla%22%3A%22time_start%22%2C%22time_grain_sqla%22%3A%22P1D%22%2C%22time_range%22%3A%22No+filter%22%2C%22metrics%22%3A%5B%7B%22expressionType%22%3A%22SQL%22%2C%22sqlExpression%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22column%22%3Anull%2C%22aggregate%22%3Anull%2C%22isNew%22%3Afalse%2C%22hasCustomLabel%22%3Afalse%2C%22label%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22optionName%22%3A%22metric_k65my36ei5e_qiwcw5ofy4m%22%7D%5D%2C%22adhoc_filters%22%3A%5B%5D%2C%22groupby%22%3A%5B%22marital_status%22%5D%2C%22columns%22%3A%5B%5D%2C%22row_limit%22%3A10000%2C%22order_desc%22%3Atrue%2C%22pandas_aggfunc%22%3A%22sum%22%2C%22pivot_margins%22%3Atrue%2C%22number_format%22%3A%22SMART_NUMBER%22%2C%22date_format%22%3A%22smart_date%2
2%2C%22extra_form_data%22%3A%7B%22custom_form_data%22%3A%7B%7D%2C%22override_form_data%22%3A%7B%7D%2C%22append_form_data%22%3A%7B%7D%7D%7D)

[Big
Number](http://localhost:8088/superset/explore/?form_data=%7B%22viz_type%22%3A%22big_number_total%22%2C%22datasource%22%3A%2219__table%22%2C%22slice_id%22%3A82%2C%22url_params%22%3A%7B%7D%2C%22time_range_endpoints%22%3A%5B%22inclusive%22%2C%22exclusive%22%5D%2C%22granularity_sqla%22%3A%22time_start%22%2C%22time_range%22%3A%22No+filter%22%2C%22metric%22%3A%7B%22expressionType%22%3A%22SQL%22%2C%22sqlExpression%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22column%22%3Anull%2C%22aggregate%22%3Anull%2C%22isNew%22%3Afalse%2C%22hasCustomLabel%22%3Afalse%2C%22label%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22optionName%22%3A%22metric_egnne5z0946_d0cm4i01bm7%22%7D%2C%22adhoc_filters%22%3A%5B%5D%2C%22y_axis_format%22%3A%22SMART_NUMBER%22%2C%22header_font_size%22%3A0.4%2C%22subheader_font_size%22%3A0.15%2C%22extra_form_data%22%3A%7B%22custom_form_data%22%3A%7B%7D%2C%22override_form_data%22%3A%7B%7D%2C%22append_form_data%22%3A%7B%7D%7D%7D)
looks OK to me

[Dual Line
Chart](http://localhost:8088/superset/explore/?form_data=%7B%22viz_type%22%3A%22dual_line%22%2C%22datasource%22%3A%2219__table%22%2C%22slice_id%22%3A82%2C%22url_params%22%3A%7B%7D%2C%22time_range_endpoints%22%3A%5B%22inclusive%22%2C%22exclusive%22%5D%2C%22granularity_sqla%22%3A%22time_start%22%2C%22time_grain_sqla%22%3A%22P1D%22%2C%22time_range%22%3A%22No+filter%22%2C%22color_scheme%22%3A%22supersetColors%22%2C%22label_colors%22%3A%7B%7D%2C%22x_axis_format%22%3A%22smart_date%22%2C%22metric%22%3A%22count%22%2C%22y_axis_format%22%3A%22SMART_NUMBER%22%2C%22y_axis_bounds%22%3A%5Bnull%2Cnull%5D%2C%22metric_2%22%3A%7B%22expressionType%22%3A%22SQL%22%2C%22sqlExpression%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22column%22%3Anull%2C%22aggregate%22%3Anull%2C%22isNew%22%3Afalse%2C%22hasCustomLabel%22%3Afalse%2C%22label%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22optionName%22%3A%22metric_y1k9ywww97r_ydides4be9%22%7D%2C%22y_axis_2_format%22%3A%22SMART_NUMBER%22%2C%22y_axis_2_bounds%22%3A%
5Bnull%2Cnull%5D%2C%22adhoc_filters%22%3A%5B%5D%2C%22annotation_layers%22%3A%5B%5D%2C%22extra_form_data%22%3A%7B%22custom_form_data%22%3A%7B%7D%2C%22override_form_data%22%3A%7B%7D%2C%22append_form_data%22%3A%7B%7D%7D%7D)

[Time-series Period
Pivot](http://localhost:8088/superset/explore/?form_data=%7B%22viz_type%22%3A%22time_pivot%22%2C%22datasource%22%3A%2219__table%22%2C%22slice_id%22%3A82%2C%22url_params%22%3A%7B%7D%2C%22time_range_endpoints%22%3A%5B%22inclusive%22%2C%22exclusive%22%5D%2C%22granularity_sqla%22%3A%22time_start%22%2C%22time_grain_sqla%22%3A%22P1D%22%2C%22time_range%22%3A%22No+filter%22%2C%22metric%22%3A%7B%22expressionType%22%3A%22SQL%22%2C%22sqlExpression%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22column%22%3Anull%2C%22aggregate%22%3Anull%2C%22isNew%22%3Afalse%2C%22hasCustomLabel%22%3Afalse%2C%22label%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22optionName%22%3A%22metric_3k6ay6ex9gu_2er2f7kq0kc%22%7D%2C%22adhoc_filters%22%3A%5B%5D%2C%22freq%22%3A%22W-MON%22%2C%22line_interpolation%22%3A%22linear%22%2C%22color_picker%22%3A%7B%22r%22%3A0%2C%22g%22%3A122%2C%22b%22%3A135%2C%22a%22%3A1%7D%2C%22x_axis_label%22%3A%22age%22%2C%22bottom_margin%22%3A%22auto%22%2C%22x_axis_format%22%3A%22smart_date
%22%2C%22y_axis_label%22%3A%22count%22%2C%22left_margin%22%3A%22auto%22%2C%22y_axis_format%22%3A%22SMART_NUMBER%22%2C%22y_axis_bounds%22%3A%5Bnull%2Cnull%5D%2C%22extra_form_data%22%3A%7B%22custom_form_data%22%3A%7B%7D%2C%22override_form_data%22%3A%7B%7D%2C%22append_form_data%22%3A%7B%7D%7D%7D)
also looks OK to me

[Bar
Chart](http://localhost:8088/superset/explore/?form_data=%7B%22viz_type%22%3A%22dist_bar%22%2C%22datasource%22%3A%2219__table%22%2C%22slice_id%22%3A82%2C%22url_params%22%3A%7B%7D%2C%22time_range_endpoints%22%3A%5B%22inclusive%22%2C%22exclusive%22%5D%2C%22granularity_sqla%22%3A%22time_start%22%2C%22time_range%22%3A%22No+filter%22%2C%22metrics%22%3A%5B%7B%22expressionType%22%3A%22SQL%22%2C%22sqlExpression%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22column%22%3Anull%2C%22aggregate%22%3Anull%2C%22isNew%22%3Afalse%2C%22hasCustomLabel%22%3Afalse%2C%22label%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22optionName%22%3A%22metric_u5cuk4h7i48_nopwaswccig%22%7D%5D%2C%22adhoc_filters%22%3A%5B%5D%2C%22groupby%22%3A%5B%22marital_status%22%5D%2C%22columns%22%3A%5B%5D%2C%22row_limit%22%3A10000%2C%22order_desc%22%3Atrue%2C%22color_scheme%22%3A%22supersetColors%22%2C%22label_colors%22%3A%7B%7D%2C%22y_axis_format%22%3A%22SMART_NUMBER%22%2C%22y_axis_label%22%3A%22count%22%2C%22y_axis_bounds%22%3A%5Bnull%2
Cnull%5D%2C%22x_axis_label%22%3A%22age%22%2C%22bottom_margin%22%3A%22auto%22%2C%22x_ticks_layout%22%3A%22auto%22%2C%22extra_form_data%22%3A%7B%22custom_form_data%22%3A%7B%7D%2C%22override_form_data%22%3A%7B%7D%2C%22append_form_data%22%3A%7B%7D%7D%7D)

[Paired t-test
Table](http://localhost:8088/superset/explore/?form_data=%7B%22viz_type%22%3A%22paired_ttest%22%2C%22datasource%22%3A%2219__table%22%2C%22slice_id%22%3A82%2C%22url_params%22%3A%7B%7D%2C%22time_range_endpoints%22%3A%5B%22inclusive%22%2C%22exclusive%22%5D%2C%22granularity_sqla%22%3A%22time_start%22%2C%22time_range%22%3A%22No+filter%22%2C%22metrics%22%3A%5B%7B%22expressionType%22%3A%22SQL%22%2C%22sqlExpression%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22column%22%3Anull%2C%22aggregate%22%3Anull%2C%22isNew%22%3Afalse%2C%22hasCustomLabel%22%3Afalse%2C%22label%22%3A%22COUNT%28%2A%29+%2B+NULL%22%2C%22optionName%22%3A%22metric_u5cuk4h7i48_nopwaswccig%22%7D%5D%2C%22adhoc_filters%22%3A%5B%5D%2C%22groupby%22%3A%5B%22marital_status%22%5D%2C%22limit%22%3A100%2C%22order_desc%22%3Atrue%2C%22row_limit%22%3A10000%2C%22significance_level%22%3A0.05%2C%22pvalue_precision%22%3A6%2C%22liftvalue_precision%22%3A4%2C%22extra_form_data%22%3A%7B%22custom_form_data%22%3A%7B%7D%2C%22override_form_d
ata%22%3A%7B%7D%2C%22append_form_data%22%3A%7B%7D%7D%7D)

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
