From 3cb725be3e2d6ee6b2596ee8b60f4438157c5ae6 Mon Sep 17 00:00:00 2001 From: Max Halford Date: Wed, 25 Sep 2024 10:25:52 +0200 Subject: [PATCH] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 83fa25b..0117910 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,8 @@ This README provides a small introduction. For more information, please refer to Let's say you're an analyst at an Airbnb-like company. You're tasked with analyzing year-over-year revenue growth. You have obtained the following dataset: ```py ->>> import locale >>> import pandas as pd ->>> _ = locale.setlocale(locale.LC_ALL, 'en_US') ->>> fmt_currency = lambda x: '' if pd.isna(x) else locale.currency(x, grouping=True)[:-3] +>>> fmt_currency = lambda x: '' if pd.isna(x) else '${:,.0f}'.format(x) >>> revenue = pd.DataFrame.from_dict([ ... {'year': 2019, 'bookings': 1_000, 'revenue_per_booking': 200},