https://github.com/vbalasu/pandas-gbq-layer
https://github.com/vbalasu/pandas-gbq-layer
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vbalasu/pandas-gbq-layer
- Owner: vbalasu
- Created: 2020-07-04T03:12:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T03:13:36.000Z (almost 5 years ago)
- Last Synced: 2025-03-25T19:21:17.409Z (about 2 months ago)
- Language: Python
- Size: 69.4 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-layers - `vbalasu/pandas-gbq-layer` - gbq for reading and writing from/to Google BigQuery | `python3.7` |  | (Layers / Utilities)
README
# pandas-gbq-layer
This is an AWS Lambda layer that contains `pandas` and `pandas-gbq` for Python 3.7
You can include this layer in your Lambda functions by referencing the following ARN:
`arn:aws:lambda:us-west-2:251566558623:layer:python37-layer-pandas-gbq:1`
Note that this layer is available in `us-east-1` and `us-west-2` regions
You can then import libraries in your application. See example below for using in a Chalice app
app.py
```python
from chalice import Chalice
import pandas as pd
app = Chalice(app_name='pandas-gbq')@app.route('/')
def index():
return {'version': pd.__version__}
```.chalice/config.json
```json
{
"version": "2.0",
"app_name": "pandas-gbq",
"layers": ["arn:aws:lambda:us-west-2:251566558623:layer:python37-layer-pandas-gbq:1"],
"stages": {
"dev": {
"api_gateway_stage": "api"
}
}
}
```