I import the server's response to csv, and then open it as a DataFrame
. The problem is that zero values are written to the file as '--'
, which is why I get an error of data compliance.
As I understand it, it will be easier to somehow open the CSV and change these characters to 0.
Tell me, please, how to be :) and maybe somehow implement it with the help of DataFrame
file = open("cashe.txt", "w") file.write(data) file.close() f = DataFrame.from_csv("cashe.txt",header=1, sep=' ', index_col=0, parse_dates=True)