Oct-25-2019, 09:59 AM
Hi All...
I am trying to make a list from the table values I retrieved using below method
Code:
tabledata=browser.get_table_data("Xpath__//div[@class='col-md-12 hui-display']/div/div")
#print("printing table data")
#print(tabledata)
if(len(tabledata)>0):
import pandas as pd
pd.set_option('display.max_columns',None)
table_df=pd.DataFrame(tabledata)
print("printing the data frame")
print(table_df)
I am getting data in a not so defined formatt
How do I get data from a table with all the header and keep it in a list to compare it with my test data. Please help me out understand this
I am trying to make a list from the table values I retrieved using below method
Code:
tabledata=browser.get_table_data("Xpath__//div[@class='col-md-12 hui-display']/div/div")
#print("printing table data")
#print(tabledata)
if(len(tabledata)>0):
import pandas as pd
pd.set_option('display.max_columns',None)
table_df=pd.DataFrame(tabledata)
print("printing the data frame")
print(table_df)
I am getting data in a not so defined formatt
How do I get data from a table with all the header and keep it in a list to compare it with my test data. Please help me out understand this