Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- def read_csv_file(file_path):
- try:
- with open(file_path, 'r', newline='') as file:
- reader = csv.reader(file)
- for row in reader:
- print(row) # Modify this to suit your specific needs (e.g., process or manipulate the data)
- except FileNotFoundError:
- print("File not found. Please provide a valid file path.")
- # Replace 'file_path.csv' with the path to your CSV file
- file_path = 'B5 segmentSummary (1).csv'
- read_csv_file(file_path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement