- 100b stars in milky way
- 100b galaxies in observable universe
- 10^22 stars available
- sun-like stars 5-20% (est 1%)
- possible earth-like planets 22-50% (est 10%)
- estimate 1% of earth-like planets develop life
I was trying to open some index.html file that attempts to load in a json file and got the following error:
Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
Turns out this error gets thrown in chrome if your web page isn't being served up via a proper webserver credits here
inbox do something tomorrow that i just remembered about but don't want to leave the command line
instructions in the readme. they're easy.
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
| import pandas as pd | |
| data = [ | |
| [1,2], | |
| [3,4], | |
| [4,5], | |
| [8,9] | |
| ] | |
| df = pd.DataFrame(data, columns=['a','b']) |
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
| def fn(*args, **kwargs): | |
| print kwargs | |
| print '{a} {b}'.format(**kwargs) | |
| fn(a='blah', b='asdf') |
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
| import pandas as pd | |
| data = [ | |
| [1,2], | |
| [3,4], | |
| [5,6] | |
| ] | |
| cols = ['a','b'] |
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
| import arrow | |
| import pprint | |
| start = '2015-01-01' | |
| end = '2015-01-02' | |
| s = arrow.get(start) | |
| e = arrow.get(end) | |
| print s |