Skip to main content
Question

I am facinf below issues in IQ BOT 1)The table's rows are skipping (it jumps to the fourth record instead of the first row) 2) Single-row data are split and updated into two rows.

  • 14 November 2022
  • 6 replies
  • 61 views

I am facinf below issues in IQ BOT 1)The table's rows are skipping (it jumps to the fourth record instead of the first row) 2) Single-row data are split and updated into two rows.

6 replies

Userlevel 6
Badge +15

Hi @Lavanya Anbuselvan​ ,

 

Would you be able to share the screen shot of the table here?

 

 

Please find the below

 

IQ Bot 11.x: Table fields - Automation Anywhere Documentation

 

IQ Bot 11.x: Map a table - Automation Anywhere Documentation

Badge +1

Thanks Tamil.

Could you please explain the below code.

 

# convert from dictionary to dataframe

df = pd.DataFrame.from_dict(table_values)

 

# print dataframe before update

print(df)

 

# Item_Description: drop rows with a missing value

df = df[(df["Item_Description"] != "")]

 

# Quantity: extract first part of the string, the numeric part only

df['Quantity'] = df['Quantity'].str.split(' ', 1).str[0].str.strip()

 

# print dataframe after update

print(df)

 

# convert back from dataframe to dict to override what IQ Bot stores

table_values = df.to_dict()

Badge +1

I am fetting error as "nameError : name 'table_values' is not defined : File "<string>", line 3, in <module>\n'"

Userlevel 6
Badge +15

Can you please share it code with the IQ BOT logic screen and Error?

Userlevel 6
Badge +15

Please try the below code

 

import pandas as pd

df = pd.DataFrame.from_dict(table_values)

df = df[(df["Item_Description"] != "")]

df['Quantity'] = df['Quantity'].str.split(' ', 1).str[0].str.strip()

table_values = df.to_dict()

Badge +1

Hi Tamil,

My Issues is that rows are overlapping

Reply