Hacker News new | ask | show | jobs
by sampo 654 days ago

    import datetime
    import pandas as pd

    hundred_or_less_even_seconds = (
        pd.Series(range(1, 1000))
        .loc[lambda x: x <= 100]
        .loc[lambda x: x % 2 == 0]
        .map(lambda x: datetime.timedelta(seconds=x))
        .to_list()
    )
1 comments

Frankly much less clearer/less readability than the Kotlin code.