Tuesday, June 19, 2018

Brazil hydroelectric power plants




Notes :

  • Circle size is the plant's capacity.
  • Itaipu considered 7.000 MW (Brazilian share).
  • Belo Monte considered full capacity 11.232 MW (expected to reach  in 2020).

Thursday, June 14, 2018

Asia and Oceania - Fixed telephone lines




Click on the map for full size animation.

Notes :
  • Data for Afganistan from 2004 to 2008 estimated. 
  • Data for Cambodia from 1980 to 1986 estimated.
  • Data for New Caledonia 2016 estimated. 
  • Data for Timor Leste only from 2003 on.
  • World Bank does not separate China form Taiwan for this matter, so I left Taiwan blank instead of repeating China's data on It.
  • Animation made in Python using Pandas Matplotlib, Quandl and Cartopy libraries.

Saturday, June 9, 2018

Europe - fixed telephone lines




Click on the image to full size.


Notes :

  • Bosnia data available from 1992 on.
  • Montenegro from 2005 on.
  • Serbia from 2004 on.
  • Slovenia from 1990 on.
  • Kosovo data not available.

Wednesday, June 6, 2018

Americas - Mobile and telephones lines (1995 to 2016)







Notes :

  • Charts made using Python with use of Pandas, Matplotlib, Seaborn and Quandl(data) libraries. 
  • Compilation of 37 datasets from countries and territories in which both data (mobile subscriptions and telephone lines) where available.

Tuesday, May 29, 2018

Yahoo Finance Stock Price Scraper - mosaic of 40 Brazilian stocks

  After pandas.datareader deprecated Yahoo Finance, I did a web scraper using Beautiful Soup to get stock prices from there, but there are limitations : Its only able to get about 100 days minus every day the a dividend (if any) is paid for a particular stock. 

  Bear in mind that although Yahoo Finance adjusts the price for dividends It did not adjust splits (at least for Brazilian stocks). 

  It can be easily adjust for stocks of other countries covered By Yahoo F. simply altering the local stock country code (line 93). 




>> Python 3 code on Gist <<

Postscript : 

  • 05/31 - The code has stopped working on - Yahoo has changed the html code for the page. Working on a new code.
  • 06/01 - The code was updated today - adapted to new html design of Yahoo Finance.
  • 06/07 - Minor adjustment on the page requires a one line(40) change to : " for n in range(0, len(d)-1) :" - code was updated today.


Wednesday, May 23, 2018

Asia and Oceania - Mobile cellular subscriptions





Click on the map for full size animation.

Notes :
  • Data for Timor Leste only from 2003 on.
  • World Bank does not separate China form Taiwan for this matter, so I left Taiwan blank instead of repeating China's data on It.