Python for Spreadsheet Users
Chris Cardillo
Data Scientist
'Apple' != 'apple'
'Apple' != 'apple'
'Apple' != ' Apple '
'Apple' != 'apple'
'Apple' != ' Apple '
fruit_price['name'].str.title()
fruit_price['name'] = fruit_price['name'].str.title()
print(fruit_price)
fruit_price['name'] = fruit_price['name'].str.upper()
print(fruit_price)
fruit_price['name'] = fruit_price['name'].str.lower()
print(fruit_price)
fruit_price['name'] = fruit_price['name'].str.title()
print(fruit_price)
fruit_price['name'] = fruit_price['name'].str.strip()
print(fruit_price)
fruit_price[['name', 'price_usd']]
fruit_price = fruit_price[['name', 'price_usd']]
fruit_price.drop('unneeded', axis=1)
fruit_price = fruit_price.drop('unneeded', axis=1)
Python for Spreadsheet Users