Skip to content

Commit

Permalink
fix: fix a bug in show disambiguation click api (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzhang13 authored Aug 22, 2020
1 parent d7520a6 commit a7eddca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Watson Assistant Improve Notebooks

[![Build Status](https://travis-ci.org/watson-developer-cloud/assistant-improve-recommendations-notebook.svg?branch=master)](https://travis-ci.org/github/watson-developer-cloud/assistant-improve-recommendations-notebook)
[![Slack](https://wdc-slack-inviter.mybluemix.net/badge.svg)](https://wdc-slack-inviter.mybluemix.net)
[![Latest Stable Version](https://img.shields.io/pypi/v/assistant-improve-toolkit)](https://pypi.org/project/assistant-improve-toolkit/)
[![CLA assistant](https://cla-assistant.io/readme/badge/watson-developer-cloud/assistant-improve-recommendations-notebook)](https://cla-assistant.io/watson-developer-cloud/assistant-improve-recommendations-notebook)

This repository houses Watson Assistant Improve notebooks and the underlying assistant improve toolkit library.

## Introduction
Expand Down
4 changes: 2 additions & 2 deletions src/assistant_improve_toolkit/visualize_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def show_disambiguation_click(disambiguation_utterances, interval=None):

if delta:
click_detail_pd = disambiguation_utterances[['request_datetime_interval', 'select_rank_d']].groupby(
['request_datetime_interval', 'select_rank_d'], as_index=False).size().reset_index()
['request_datetime_interval', 'select_rank_d'], as_index=False).size().reset_index(drop=True)

if click_detail_pd.shape[0] == 0:
print('No Disambiguation click found.')
Expand Down Expand Up @@ -1084,7 +1084,7 @@ def show_more_options_click(disambiguation_utterances, interval=None):

if delta:
click_detail_pd = disambiguation_utterances[['request_datetime_interval', 'select_rank_a']].groupby(
['request_datetime_interval', 'select_rank_a'], as_index=False).size().reset_index()
['request_datetime_interval', 'select_rank_a'], as_index=False).size().reset_index(drop=True)

if click_detail_pd.shape[0] == 0:
print('No More Options click found.')
Expand Down

0 comments on commit a7eddca

Please sign in to comment.