snowflake.snowpark.Row.as_dict¶ Row.as_dict(recursive: bool = False) → Dict[source]¶ Convert to a dict if this row object has both keys and values. Parameters: recursive – Recursively convert child Row objects to dicts. Default is False. CopyExpand>>> row = Row(name1=1, name2=2, name3=Row(childname=3)) >>> row.as_dict() {'name1': 1, 'name2': 2, 'name3': Row(childname=3)} >>> row.as_dict(True) {'name1': 1, 'name2': 2, 'name3': {'childname': 3}} Show lessSee moreScroll to top