i was using Jupyter notebook to learn data analysing in Python and i recently came across two different answers because of a mistake i made and later wanted to know what is the difference between them.
The first one where i made a mistake
sales['Unit_Cost'].median
<bound method NDFrame._add_numeric_operations.<locals>.median of 0 45
1 45
2 45
3 45
4 45
..
113031 24
113032 24
113033 24
113034 24
113035 24
Name: Unit_Cost, Length: 113036, dtype: int64>
and the second one
sales['Unit_Cost'].median()
9
Basically i want to know the difference .median and .median()
This is my first time trying to code and im not a tech-savy person.English also is not my mother language so im sorry in advance if i made any grammar or coding errors or made a mistake in posting my question.
Thank you so much.