Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/google sheets series #154

Merged
merged 4 commits into from
Dec 12, 2023
Merged

Bug/google sheets series #154

merged 4 commits into from
Dec 12, 2023

Conversation

jkshj21
Copy link
Collaborator

@jkshj21 jkshj21 commented Dec 12, 2023

Hello,

While I was reviewing and testing the below bug, I noticed a couple of more bugs.
#140

Even though, CopyUtil class passes an agent id to Flows class, we are still seeing an error when executing cu.flows.get_flows_map(reverse=True) because
In flows.get_flows_map function, there is no condition that sets an agent_id = self.agent_id if not agent_id

List of the changes:

  1. I added the condition that sets an agent_id = self.agent_id if not agent_id in Flows.get_flows_map and Flows.list_flows

  2. Because of df.append, we are seeing an error "FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.".

Instead of df.append, Milad suggested changing to cu.intents.bulk_intent_to_df(intent_subset=intent_list_names)

  1. Invalid df columns

OLD:
print('Total # of Intents = {}'.format(df.intent.nunique()))
print('Total # of Training Phrases = {}'.format(df.tp.nunique()))

NEW:
print('Total # of Intents = {}'.format(df.display_name.nunique()))
print('Total # of Training Phrases = {}'.format(df.training_phrase.nunique()))

Copy link
Collaborator

@MRyderOC MRyderOC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MRyderOC
Copy link
Collaborator

@kmaphoenix ready to merge. You can delete the PR #140

Copy link
Member

@kmaphoenix kmaphoenix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kmaphoenix kmaphoenix merged commit ba2bfc9 into main Dec 12, 2023
5 checks passed
@kmaphoenix kmaphoenix deleted the bug/google_sheets_series branch December 12, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants