0

By using pandas, am reading particularly few cell values from a excel sheet in a periodic interval. The cell values are update in 2mins but the problem is when my program read values after 2mins, its always getting old value not updated one. How to solve it ?

using standard python pandas library.

def animate(i):
        df = pd.read_excel(r"example.xlsm",'Analysis').iloc[12:13,10:18].dropna(axis='columns')
        print(df)
ani=animation.FuncAnimation(fig, animate,interval=30000)
plt.show()

df value should be return as excel sheet value updated but its not happening. There is no two threads in python reading simeltanously, call values are updated by excel refresh mechanism not by python.

0 Answers0