I am trying to convert a write a python Dataframe and store it in S3. I have added the required layers in Lambda (s3fs & fsspec) and have provided requisite permissions to lambda to write to s3. But not I am getting the below error:
"errorMessage": "module 's3fs' has no attribute 'S3FileSystem'"
Below are the relevant lines of my code:
s3 = boto3.client('s3')
df.to_csv('s3://buckets/<my-bukcet-name>/mydata.csv')
Any pointers on what could be the reason for this?
Regards, Dbeings