def _get_num_characters(elem):
                """Returns the length of elem, or pd.NA given null input"""
                if pd.isna(elem):
                    return pd.NA
                return len(elem)
Returns the length of elem, or pd.NA given null input
featuretools/primitives/standard/transform/natural_language/num_characters.py