i\'m running a function in which a variable is of pandas.core.series.Series type.
type of the series shown below.
Sample:
import pandas as pd
df = pd.DataFrame({'Name': ['Will','John','John','John','Alex'],
'Payment': [15, 10, 10, 10, 15],
'Duration': [30, 15, 15, 15, 20]})
You can print by converting the series/dataframe to string:
> print (df.to_string())
Duration Name Payment
0 30 Will 15
1 15 John 10
2 15 John 10
3 15 John 10
4 20 Alex 15
> print (df.iloc[1].to_string())
Duration 15
Name John
Payment 10