Skip to content

Instantly share code, notes, and snippets.

@zonca
Created February 9, 2026 16:50
Show Gist options
  • Select an option

  • Save zonca/4a755b452e1f7b82b3a1eb389be00cb8 to your computer and use it in GitHub Desktop.

Select an option

Save zonca/4a755b452e1f7b82b3a1eb389be00cb8 to your computer and use it in GitHub Desktop.
Fake order data for pandas
{"order_id":"o1","ts":"2024-05-01 09:05:00+00:00","customer_id":"c1","segment":"SMB","amount":"19.99","status":"paid"},
{"order_id":"o2","ts":"2024-05-01 10:15:00+00:00","customer_id":"c2","segment":"Enterprise","amount":"250.00","status":"paid"},
{"order_id":"o3","ts":"2024-05-02 11:00:00+00:00","customer_id":"c1","segment":"SMB","amount":"-19.99","status":"refunded"},
{"order_id":"o4","ts":"2024-05-02 13:30:00+00:00","customer_id":"c3","segment":"SMB","amount":"39.99","status":"paid"},
{"order_id":"o5","ts":"2024-05-03 08:00:00+00:00","customer_id":"c4","segment":"Mid-Market","amount":"99.00","status":"paid"},
{"order_id":"o6","ts":"2024-05-03 09:00:00+00:00","customer_id":"c4","segment":"Mid-Market","amount":"99.00","status":"canceled"},
{"order_id":"o7","ts":"2024-05-04 16:45:00+00:00","customer_id":null,"segment":"SMB","amount":"10","status":"paid"},
{"order_id":"o8","ts":"bad_ts","customer_id":"c5","segment":"Enterprise","amount":"125.00","status":"paid"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment