I have already created a csv in Python in several ways as can be seen below, but every time I open the file opens the import screen as below.
Why does this happen?
And how can I make the file open directly within the csv defaults?
Detail: I'm using LibreOffice to open the file.
Code 1:
import csv
csvfile = "arquivo.csv"
f=open(csvfile,'wb') # abre o arquivo para escrita apagando o conteúdo
csv.writer(f, delimiter =' ',quotechar =',',quoting=csv.QUOTE_MINIMAL)
Code 2:
import csv
c = csv.writer(open("teste.csv", "w"))
Code 3:
Arquivo = open(Diretorio + "relatorios/" + nome_arquivo_csv, "a")
Arquivo.write('\n' +valores_str + '\t' + medidas_str)
Arquivo.close()