Answers for "how to read from a yaml file"

1

read data from yaml file in python

import yaml

# Read YAML file
with open("data.yaml", 'r') as stream:
    data_loaded = yaml.safe_load(stream)
Posted by: Guest on March-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language