PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep

Quick Overview

This question evaluates a candidate's ability to parse and format structured transactional data, emphasizing CSV parsing, trimming whitespace, numeric formatting to two decimal places, and preserving input row order.

  • Medium
  • Kikoff
  • Data Manipulation (SQL/Python)
  • Software Engineer

Parse CSV and format transactions

Company: Kikoff

Role: Software Engineer

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

Given a CSV file containing many transactional records with columns Merchant, Amount, Date (YYYY-MM-DD), and Status, write a script to parse the file and print, for each transaction, the following two-line block exactly in the given order: --------------------------- | {Merchant} ${Amount with two decimals} | | {Date} {Status} | --------------------------- Example for one row: --------------------------- | Merchant $10.04 | | 2020-01-01 pending | --------------------------- Requirements: - Preserve the input row order. - Format Amount as a dollar value with two decimals (e.g., $10. 04). - Trim surrounding whitespace in fields before formatting. - Output one block per transaction with the same delimiter lines and spacing pattern.

Quick Answer: This question evaluates a candidate's ability to parse and format structured transactional data, emphasizing CSV parsing, trimming whitespace, numeric formatting to two decimal places, and preserving input row order.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.