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
| ''' | |
| script to fetch all GCS URIs of diagnostic whole slide images of TCGA SKCM, to copy to your google bucket | |
| ''' | |
| from io import StringIO | |
| import json | |
| import pandas as pd | |
| import requests |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| from symdiff import Term, Polynomial | |
| expression = "4x**3 - x" | |
| polynomial = Polynomial.from_string(expression) | |
| print("Polynomial:", polynomial) | |
| print("Differentiated:", polynomial.differentiate()) |
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 os | |
| assert os.environ['PGUSER'] != '', os.environ | |
| connection_string = \ | |
| 'postgresql://{user}:{password}@{host}/{database}'.format( | |
| user=os.environ['PGUSER'], | |
| password=os.environ['PGPASSWORD'], | |
| host=os.environ['PGHOST'], | |
| database=os.environ['PGDATABASE']) |
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
| # For a comment on this SO answer: http://stackoverflow.com/a/19726078/781938 | |
| import pandas as pd | |
| # create a DataFrame with two columns: 'a' and 'A' | |
| data = pd.DataFrame({'a':[1],'A':[2]}) | |
| # print the result | |
| print data | |
| # prints: |