When I use df.apply(pd.Series.str.upper) shows me an error -
Although df.apply(pd.Series.min) is running absolutely fine! and df.apply(lambda x: x.str.upper()) is running fine too.
df = pd.DataFrame(
{
"Name":[
"Harry","Sam", "Jack"], "Gender": ["M","M","F"]})
df.apply(pd.Series.str.lower)
Error - Series' object has no attribute '_inferred_dtype'