Pandas & AWS Lambda -


does have compiled version of pandas compatible aws lambda?

after searching around few hours, cannot seem find i'm looking , documentation on subject non-existent.

i need access package in lambda function have been unsuccessful @ getting package compile usage in lambda function.

in lieu of compilation can provide reproducible steps create binaries?

unfortunately have not been able reproduce of guides on subjects combine pandas scipy don't need , adds layer of burden.

i believe should able use recent pandas version (or likely, 1 on machine). can create lambda package pandas this,

  1. first find pandas package installed on machine i.e. open python terminal , type

    import pandas pandas.__file__ 

    that should print '/usr/local/lib/python3.4/site-packages/pandas/__init__.py'

  2. now copy pandas folder location (in case '/usr/local/lib/python3.4/site-packages/pandas) , place in repository.
  3. package lambda code pandas this:

    zip -r9 my_lambda.zip pandas/ zip -9 my_lambda.zip my_lambda_function.py 

you can deploy code s3 , make lambda use code s3.

aws s3 cp  my_lambda.zip s3://dev-code//projectx/lambda_packages/ 

here's repo started


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -