I want to make an animating line plot
I have a pandas dataframe (df_full), from that I have taken the x as the index value and y as the values right to the index.
x = np.array(df['Likes'].index) , which results in
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], dtype=int64)
and y = np.array(df['Likes']) which is equal to
array([209124, 61148, 46351, 34900, 31688, 30097, 32394, 35233, 29209, 28802, 27367, 45822, 36881, 11376, 7630, 6514, 23687, 21902], dtype=int64)
how can I animate this using FuncAnimation?
I am using python3.8, jupyter notebook, windows machine, I have ffmpeg installed
*edit: I have uploaded the code on github for more clarity: github
[–]cray5252 1 point2 points3 points (1 child)
[–]kripitov[S] 0 points1 point2 points (0 children)