Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import pandas as pd def make_big(x): return x.upper() data = { "name": ["Sally","Mary","John"], "city": ["London", "Tokyo", "Madrid"] } df = pd.DataFrame(data) newdf = df.applymap(make_big) print(newdf)
name city 0 SALLY LONDON 1 MARY TOKYO 2 JOHN MADRID