title: Using sklearn and pandas in AWS Lambda Layer
body: <p>I was able to successfully follow this tutorial <a href="https://onema.io/blog/scikit-learn-layer-for-aws-lambda/" rel="nofollow noreferrer">here</a> to zip a <code>scikit-learn</code> package and create a layer. Now I have two layers loaded, one for <code>scikit-learn</code> and one for <code>numpy</code> and <code>scipy</code> that AWS already has. You can see that below</p>
  <p><a href="https://i.stack.imgur.com/ksqZl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ksqZl.png" alt="enter image description here" /></a></p>
  <p>When I try to run my lambda now, I get an error that states that</p>
  <pre><code>&quot;errorMessage&quot;: &quot;Unable to import module 'lambda_function': No module named 'pandas'&quot;
  </code></pre>
  <p>Thus I tried to do the same process with zipping up a pandas file together but when I try to load it, I exceed that 50mb maximum. Is there anyway of loading in pandas and sklearn together so that I do not go above this maximum limit?</p>