Getting Data from Home Assistant in CSV Format

Hi everyone, I’m new to Home Assistant and I’m currently using it on a virtual environment on Windows 10. I’ve been exploring the capabilities of Home Assistant and one thing I’m really interested in is exporting data in CSV format. I’ve heard that it’s possible, but I’m not entirely sure how to go about it. Does anyone have any experience with this? I’d greatly appreciate any guidance or step-by-step instructions you could provide. Thanks in advance!