Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
67 lines (48 sloc) 2.2 KB

CSV

|CsvTableWriter| class can write a Comma-Separated Values (CSV) table to the |stream| from a matrix of data.

Sample Code:
Output:
"int","float","str","bool","mix","time"
0,0.10,"hoge",True,0,"2017-01-01 03:04:05+0900"
2,-2.23,"foo",False,,"2017-12-23 12:34:51+0900"
3,0.00,"bar",True,Infinity,"2017-03-03 22:44:55+0900"
-10,-9.90,,False,NaN,"2017-01-01 00:00:00+0900"

TSV

|TsvTableWriter| class can write a Tab-Separated Values (TSV) table to the |stream| from a matrix of data.

Sample Code:
Output:
"int"   "float" "str"   "bool"  "mix"   "time"
0       0.10    "hoge"  True    0       "2017-01-01 03:04:05+0900"
2       -2.23   "foo"   False           "2017-12-23 12:34:51+0900"
3       0.00    "bar"   True    Infinity        "2017-03-03 22:44:55+0900"
-10     -9.90           False   NaN     "2017-01-01 00:00:00+0900"
You can’t perform that action at this time.