* Using s3fs to read a file
import s3fs
s3 = s3fs.S3FileSystem()
path = "s3://my-bucket/foo/bar.txt"
text = s3.read_text(path)
* Using s3fs to glob for files
import s3fs
s3 = s3fs.S3FileSystem()
bar = "s3://my-bucket/foo/*"
my_paths = s3.glob(bar)
* Reading a file with pandas
import pandas as pd
path = "s3://my-bucket/foo/bar.csv"
my_df = pd.read_csv(path)
Is someone getting charged money when I do any of these three things?
0 comments:
Post a Comment
Thanks