Skip to main content

chat1

import polars as pl

for i, entry in enumerate(a_list):
    try:
        # Attempt to create a DataFrame with just this entry
        pl.DataFrame([entry], schema=["stsdf", "abc"])
    except Exception as e:
        print(f"Error at index {i} with entry {entry}: {e}")
        break