I am trying to read values from an Excel file and when I do:
for i in range(1, row_num + 1):
try:
cell_obj = sheet.cell(row = i, column = 1)
I get the following warning:
DeprecationWarning: Call to deprecated function get_squared_range (Use ws.iter_rows()).
for row in self.get_squared_range(column, row, column, row):
I've tried to implement what the Python documentation says, but it just didn't work or I wasn't using it properly, I also tried to do the following:
for i in range(1, row_num + 1):
try:
cell_obj = sheet.cell(row = i, column = 1)
myList.append((cell_obj).value)
warnings.filterwarnings("ignore", category=DeprecationWarning)
but again, nothing is happening. Could anyone shed some light on this?