Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2023 04:54 AM
Your code works, you just have to remove the comma at the end of the second line
file_str = f"dbfs:/mnt/dlsi2023/raw/ds_pet_finder_organization{x}.json",Should be
file_str = f"dbfs:/mnt/dlsi2023/raw/ds_pet_finder_organization{x}.json"This is what is causing the error.
Also note that
f"{file_str}" is equivalent to just file_str : No f-string needed here !