This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| import "math/rand" | |
| import "time" | |
| const NoOfGames = 10000 | |
| const NoOfDoors = 3 | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Requests | |
| using DataFrames | |
| using ExcelReaders | |
| using Plotly | |
| using Colors | |
| # read population height dataset | |
| heightsUrl = "http://www.ncdrisc.org/downloads/height/NCD_RisC_eLife_2016_height_age18_countries.csv"; | |
| heights = get(heightsUrl; timeout = 30.0) | |
| if heights.status != 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Requests | |
| using LibExpat | |
| using DataFrames | |
| using Plotly | |
| using Colors | |
| res = get("https://en.wikipedia.org/wiki/List_of_countries_by_population_(United_Nations)"); | |
| et = xp_parse(bytestring(res.data)); | |
| rows = LibExpat.find(et, "//table[1]//tr"); |