@lernerpython.comReuven M. Lerner @lernerpython.com
2026-11-11 17:29 UTC
Want to set an option in #Python #Pandas, but just temporarily? You can use option_context: with pd.option_context('display.precision', 2): print(s/3) Within the "with" block, the display precision is 2. But outside -- before or after -- it is the default.
1 picture (not shown on this phone)
3 likes, 0 reposts, 0 replies
3 Next post4 More from @lernerpython.comBackBluesky home