Dataset is capable to store objects only, so when you try to push and array into the dataset it will be stored as several object - when running locally this will create several files. To solve this you may handle storing into file by yourself (when running locally), or you may run it as an actor on Apify Console (
https://console.apify.com/) which may provide you various dataformats to export including CSV.