Loading
  • 21 Aug, 2019

  • By, Wikipedia

File:Vladimir Putin Approval (Levada, 2020).png

Python3 code used to generate this graph. Data is copied manually from Levada.ru and saved into two separate ASCII files:

  • approval.txt - approval (%) formatted as comma-separated integers (31,53,65...)
  • dates.txt - dates of the corresponding approval polls formatted as comma-separated MM.YYYY strings (08.1999,09.1999,10.1999,11.1999...)
from numpy import loadtxt
from matplotlib import pyplot as plt

approval = loadtxt('approval.txt',delimiter=',')
dates = loadtxt('dates.txt',delimiter=',',dtype=str)
dates2 = [datetime.datetime.strptime(x, '%m.%Y') for x in dates]
x = dates2
y = approval
plt.plot(x,y)
plt.ylabel('Approval %')
plt.title('Vladimir Putin approval percentage (Levada, closed question)')
plt.grid(True)
plt.show()

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

25 May 2020

image/png

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current22:47, 25 May 2020Thumbnail for version as of 22:47, 25 May 20201,920 × 1,046 (95 KB)Cloud200Cross-wiki upload from en.wikipedia.org

The following 3 pages use this file:

Global file usage

The following other wikis use this file:

Metadata