'Why this upper column dataframe function doesn't work?
I want to create a function to upper columns, I already try this:
def upperColumn(DataframeColumn):
DataframeColumn = DataframeColumn.str.upper()
upperColumn(df['ANYTHING'])
I need this to be the same as:
df['ANYTHING'] = df['ANYTHING'].str.upper()
obs. Pandas is imported and the dataframe is created already.
Thank you in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
