mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2024-11-12 10:15:19 +01:00
add frame_to_file function
This commit is contained in:
parent
2303617e90
commit
bc72106178
@ -38,3 +38,11 @@ func get_chart_type(chart_type : int) -> Array:
|
||||
|
||||
func get_letter_index(index : int) -> String:
|
||||
return alphabet.split(" ")[index]
|
||||
|
||||
func save_dataframe_to_file(dataframe: DataFrame, path: String, delimiter: String = ";") -> void:
|
||||
var file = File.new()
|
||||
file.open(path, File.WRITE)
|
||||
for row in dataframe.get_dataset():
|
||||
file.store_line(PoolStringArray(row).join(delimiter))
|
||||
file.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user