Python convert txt to csv6/4/2023 ![]() ![]() However, when I test the function, I am now getting the error: Unable to import module 'lambda_function': No module named 'pandas'. UPDATE: I changed the script based on the helpful feedback from Marcin and added a pandas layer to the function. If someone could provide insight into what specifically is wrong with my code, or if there is a simpler way to address this problem, I would greatly appreciate it. ![]() This leads me to believe that there is something wrong with the code I am using for converting the. However, when I drop a file 'pipedelimitedtest' into 'testinput', nothing happened. I followed the steps in this blog so that I could import Pandas. I created a Lambda function using the code below and set up the S3 trigger. ![]() csv file, and then put that converted file into the bucket 'testoutput' (a private bucket). txt file is dropped in the bucket 'testinput' (a private bucket), convert it from a. I am trying to create a Lambda function which is triggered whenever a. ![]()
0 Comments
Leave a Reply. |