costco vs walmart stock performance
costco vs walmart stock performance
Calling: load
- metrics=["close"], tickers=["COST", "WMT"], start_date="2019-05-31"
DataFrame 63
OK cost_wmt_price (3518 rows)
Calling: compute
- dataframe_ids=[63], code="df = df_63.sort_values(['ticker', 'date'])\ndf['start_price'] = df.groupby('ticker')['close'].transform('first')\ndf['performance'] = (df['close'] / df['start_price'] - 1) * 100\nresult = df[['ticker', 'date', 'performance']]"
DataFrame 64
OK result_64 (3518 rows)
Calling: compute
- dataframe_ids=[64], code="df = df_64.pivot(index='date', columns='ticker', values='performance')\nresult = df.reset_index()"
DataFrame 65
OK result_65 (1759 rows)
Calling: show
- dataframe_id=65, rows=20
Blob 6
DataFrame 65
OK result_65 (1759 rows)
Calling: compute
- code="df = df_65.sort_values('date', ascending=False)\nresult = df.head(10)", dataframe_ids=[65]
DataFrame 66
OK result_66 (10 rows)
The following table compares the cumulative stock performance of Costco (COST) and Walmart (WMT) over the last seven years (since May 2019), normalized to 0% at the start of the period.
| Date | COST Performance (%) | WMT Performance (%) |
|---|---|---|
| 2026-05-29 | 339.75% | 277.40% |
| 2026-05-28 | 357.63% | 287.68% |
| 2026-05-27 | 361.53% | 286.50% |
| 2026-05-26 | 361.18% | 286.60% |
| 2026-05-22 | 372.82% | 292.14% |
| 2026-05-21 | 383.03% | 295.63% |
| 2026-05-20 | 393.87% | 326.64% |
| 2026-05-19 | 403.21% | 337.56% |
| 2026-05-18 | 395.00% | 334.76% |
| 2026-05-15 | 382.34% | 328.59% |