- #1
- 7,328
- 11,174
Hi All,
A couple of questions, please:
1) Say df is a dataframe in Python Pandas, and I select a specific column from df:
Y=df[column].values.
What kind of data structure is Y?
2)
I want to find the sum of two numbers:
Def Sum(a=0,b=0):
return a+b
If I want to find a sum over sum data structure ( say a list) , how can
I define sum, i.e., how to extend it from a binary operation? Should I use
recursion and/or some 'for' clause?
Thanks.
A couple of questions, please:
1) Say df is a dataframe in Python Pandas, and I select a specific column from df:
Y=df[column].values.
What kind of data structure is Y?
2)
I want to find the sum of two numbers:
Def Sum(a=0,b=0):
return a+b
If I want to find a sum over sum data structure ( say a list) , how can
I define sum, i.e., how to extend it from a binary operation? Should I use
recursion and/or some 'for' clause?
Thanks.