Created
March 6, 2017 13:46
-
-
Save ihuston/6ee96549529a58b67195d2f4728053fa to your computer and use it in GitHub Desktop.
Minimal Pandas + Conda CF app
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 io import StringIO | |
import requests | |
import pandas as pd | |
r = requests.get("https://www.plants.usda.gov/java/downloadData?fileName=plantlst.txt&static=true").text | |
df = pd.read_csv(StringIO(r)) | |
print(df) | |
while True: | |
pass | |
exit(0) |
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
name: root | |
dependencies: | |
- mkl | |
- numpy | |
- pandas | |
- openssl | |
- requests | |
- python=3.6 |
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
--- | |
applications: | |
- name: conda-test2 | |
memory: 1GB | |
disk_quota: 2GB | |
random-route: true | |
command: python app.py | |
buildpack: python_buildpack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment