All Questions
4 questions
3
votes
1
answer
3k
views
Select value based on condition on dataframe
I have some data in data frame and would like to return a value based on specific conditions. It is highly time consuming.
I tried three methods:
Method 1:
Without dataframe, this is the simple ...
4
votes
4
answers
14k
views
Checking whether a list is sorted, ascending or descending
What is the best way to conditionally use an operator? All 3 methods seemed acceptable to me, and the last 2 better.
If you're curious: I've got a list which is unsorted, and many other lists which ...
2
votes
1
answer
104
views
Conditional statements with doctor and patient information
I'm focusing on trying to write clean, modular Python 2.7.5 code.
...
10
votes
3
answers
970
views
Displaying information about people from a JSON file
I'm working with Python 2.7.5 and I have written the following code:
...