'how to add values from a function to a list
This is a sample database from a function can someone help me to send the output of function to list as shown in the screenshot [this function "getDistrict_Name_for_State" takes the input value as "Bihar" and displays the list of districts in the state of Bihar. Now I want to send this or append these values to a list
so is the second function "getCropNames_for_State_District - if I provide the State Name and District Name as input parameters, I get the crops cultivated in that particular district of that state, how do I send the crops to a list]2
if you can refer, this is the link: https://www.repath.in/Querying-a-DataFrame/ - cell 19 - I am referring to cells like 29, 30, 32, 35 and others where the output of the function is a series of values, which I want them to be in a list, so as to write a loop to iterate through the values from the function.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
