Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
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 ...
Praveen Gupta Sanka's user avatar
2 votes
1 answer
4k views

Python Pandas Apply with a Lambda Function

I have a table in pandas that has two columns, QuarterHourDimID and StartDateDimID ; these columns give me an ID for each date / ...
mburke05's user avatar
  • 651
1 vote
1 answer
281 views

Excessive use of lambda with variant of Sieve of Eratosthenes?

This is a function which produces the sum of primes beneath (not including) a certain number (using a variant on the sieve of Eratosthenes). ...
Moop's user avatar
  • 265