Closed xkungfu closed 2 years ago
Yes, as you figured out the only problem is that the header of DataFrame in csv2 format is different than Pandas header.
DataFrame in its header has two more items; the type of the column and number of rows in the column. For number of rows, you don't have to be accurate. It is an estimate. You can even put 0 and it would work. Of course to be most efficient in space allocation and speed you must be accurate.
thanks for explanation! that is very good!
I have worked out this , but don't know if it is good way. If it is useful, hope it help someone.
the codes:
python side:
temp_str = all_df.to_csv();
then store the temp_str to a file or to redis.c++ side: