Last active
September 4, 2025 05:58
-
-
Save mittachaitu/78f3254915012ad838b92c8e7979d369 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyarrow import fs as py_fs | |
import pyarrow.parquet as pq | |
fs = py_fs.AzureFileSystem(account_name="mittasblobforray2") | |
filePath = "testcontainer1/10G-data" | |
selector = py_fs.FileSelector(base_dir=filePath, recursive=True) | |
file_info = fs.get_file_info(selector) | |
for file in file_info: | |
print(f"File Name: {file}") | |
if file.is_file: | |
print(f"Reading File: {file.path}") | |
pq.read_table(file.path, filesystem=fs) | |
fs.create_dir("testcontainer1/10G_DIR_DATA2", recursive=False) | |
print("Successfully created directory!!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment