Questions tagged [lambda]
DO NOT USE FOR THE AWS SERVICE (use [aws-lambda] for those questions!) Lambdas are anonymous functions or closures in programming languages such as Lisp, C#, C++, Lua, Python, Ruby, JavaScript, Java, Excel or Google sheets. (Also, lambda expression.)
lambda
30,239
questions
0
votes
1
answer
55
views
'Mul' object is not callable when iterating a function
I have this code, I am trying to get the fixed points from a function in each iteration from 1 to n:
import sympy as sp
def logistica():
return lambda r,x : r * x * (1 - x)
def ...
1
vote
1
answer
62
views
Can i change this formula to tracks from a start and finish date instead of a list of dates in a column?
New to all this, so i apologize in advance for my ignorance. I have a calendar that tracks people's leave/TAD time based on dates. Currently I have the dates listed in series in a single column labled ...
2
votes
0
answers
108
views
Can C++20 std::ranges::find_if throw exceptions?
From the std::ranges::find, std::ranges::find_if, std::ranges::find_if_not page, it does not mention exceptions, but neither are marked as noexcept.
I'm assuming that the behaviour will be the same as ...
0
votes
2
answers
56
views
Arrayfomula with filter on entire column
I'm trying to build a Google Sheets formula to have a column that lists an array (can concatenate) of products ordered in the first order of a customer.
So for a any order with the same customer ID, ...
1
vote
1
answer
37
views
sorting a list of tuples using lambda, python [duplicate]
I have a list of tuples that contains (name, score).
I want to sort the list on the second element (reverse = True) and if two names are similar then sort it on first element but not using reverse.
I ...
-1
votes
2
answers
44
views
Counting number of specific characters in a row (not in a range)
I'm having trouble finding a simple way to count "X"s marked in a row, but in specific columns.
On the left (highlighted in pink), I have various categories of "rope replacement reasons&...
2
votes
2
answers
73
views
Data manipulation in google sheets with arrayformula and lambda helpers
i've got a quite complex situation to solve with google sheets. I already solved it in a very unelegant way, and I would need your help to understand why other solutions I tried failed, and maybe to ...
0
votes
0
answers
33
views
FilterDefinitions to Lambda Expression<Func<TEntity, bool>> conversion - DataGrid
I am using MudBlazor Datagrid, and populating the data using ServerData. Here I get the list of filters, sorts from GridState object, which are in ICollection.
I am using a Repository and UnitOfWork ...
0
votes
2
answers
195
views
Predicates and functions
public static void main(String[] args) {
List<String> strings = Arrays.asList("a", "b", "c", "d");
strings.stream()
.filter(s -> ...
0
votes
1
answer
94
views
Polly 8 Resilience Library fallback issue
I am working with the Polly library for the first time trying to make my calls to a 3rd party SQL Server more robust. I've managed to successfully implement the retry and circuit breaker strategies. ...
1
vote
1
answer
31
views
Analyse historical data: average of every hour of every day over a number of years
I have historical data from 2012 to 2023. I am trying to calculate the average for every hour in every day over these years to build a 'reference year' or 'baseline'. My DataFrame (final_df) looks ...
0
votes
0
answers
13
views
i am getting this error while running this function in lambda
"statusCode": 400,
"body": "Failed to index JSON data into OpenSearch:
(\"error\": (\"root_cause\": [{\"type\": \"mapper_parsing_exception\&...
0
votes
0
answers
14
views
LMS fitting with R-software
I am trying to fit my data in LMS model using following code.
lms_model <- lms(
y = data$Reaction_time,
x = data$Corrected_Age,
families = "BCCG",
data = data,
k = 2,
...
0
votes
1
answer
86
views
How do I amend my IF AND statement to correctly show payments made or not?
I've been trying to set up a formula to show if someone has paid their membership fees. They can either pay yearly or monthly. The yearly formula seems to be working but the monthly formula seems to ...
0
votes
1
answer
53
views
Iteratively source a value from a dictionary
I have a data set where I know a limited number of values and based on other values in a data set I can figure out what the subsequent values are. I could do this with a huge if function, but I know ...