Код: Выделить всё
import polars as pl
def get_year(entry_id: str) -> str:
arr = entry_id.split('.')
print(f'> Function is called for {entry_id}
Подробнее здесь: [url]https://stackoverflow.com/questions/79007782/polars-when-thenmap-elementsfunction-always-calls-function[/url]