ruby csv parse

require 'csv'

# Define the path to the CSV file
file_path = 'path/to/your/file.csv'

# Open the CSV file and parse its contents
CSV.foreach(file_path) do |row|
  # Process each row of the CSV file
  # Access specific columns using array indexes or row headers
  column1 = row[0] # Access the first column of the current row
  column2 = row[1] # Access the second column of the current row

  # Perform actions or operations with the data from the CSV file
  # Replace this with your own logic or processing
  puts "Column 1: #{column1}, Column 2: #{column2}"
end