File:Wmffund2017-2022.png

From Meta, a Wikimedia project coordination wiki

Wmffund2017-2022.png(554 × 455 pixels, file size: 70 KB, MIME type: image/png)

This is a file from the Wikimedia Commons. The description on its description page there is copied below.

Summary

Description
English: Wikimedia Foundation fundraising from late November through early January, 2017-2022
Date
Source Own work; data from https://frdata.wikimedia.org/yeardata-day-vs-sum.csv
Author Sandizer

Python code used to generate

import pandas as pd
import matplotlib.pyplot as plt

rdf = pd.read_csv('https://frdata.wikimedia.org/yeardata-day-vs-sum.csv')

dates = []
dollars = []
for column, series in rdf.transpose().iterrows():
  if len(dates) > 0:
   d = dates.copy()
  for index, value in series.items():
    if column == 'date':
      dates.append(value)
    else:
      if value > 0: # drop zeros and nans
        try: # drop impossible leap days, why aren't they nans or zeros lol?
          dollars.append((pd.to_datetime(column + d.pop(0)[4:]), value))
        except:
          pass
df = pd.DataFrame(dollars, columns=['date', 'dollars'])
df.set_index('date', inplace=True)

colors = ['orange', 'purple', 'brown', 'red', 'green', 'blue']

fig, ax = plt.subplots()

for year in range(2017, 2023):
  pdf = df.loc[(df.index >= str(year) + '-11-22') & 
               (df.index <= str(year+1) + '-01-05')]
  ax.plot((pdf.index - pd.Timestamp(str(year) + '-11-22')).days, 
             pdf['dollars']/1000000, color=colors.pop(0), label=str(year))

ax.set_xlabel('Days since November 22nd')
ax.set_ylabel('Dollars (millions)')
ax.set_title('Fundraising amount received per day')

plt.legend(loc='best')
plt.show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Wikimedia banner fundraising from November-December, 2017-2022

Items portrayed in this file

depicts

20 April 2023

image/png

File history

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

Date/TimeThumbnailDimensionsUserComment
current18:34, 20 April 2023Thumbnail for version as of 18:34, 20 April 2023554 × 455 (70 KB)Sandizermore legible date range
18:22, 20 April 2023Thumbnail for version as of 18:22, 20 April 2023554 × 455 (76 KB)Sandizermillions of dollars
18:03, 20 April 2023Thumbnail for version as of 18:03, 20 April 2023606 × 455 (72 KB)SandizerUploaded own work with UploadWizard

The following page uses this file:

Metadata