From 7c318adde4c4a2f3254d1fc099b55c04e8ece7e3 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 27 Aug 2017 03:41:01 -0400 Subject: [PATCH 1/4] Update README.rst --- README.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 3ba1138..590cc61 100644 --- a/README.rst +++ b/README.rst @@ -86,7 +86,7 @@ JSON! +++++ :: - >>> print data.json + >>> print(data.json) [ { "last_name": "Adams", @@ -105,7 +105,7 @@ YAML! +++++ :: - >>> print data.yaml + >>> print(data.yaml) - {age: 90, first_name: John, last_name: Adams} - {age: 83, first_name: Henry, last_name: Ford} @@ -113,7 +113,7 @@ CSV... ++++++ :: - >>> print data.csv + >>> print(data.csv) first_name,last_name,age John,Adams,90 Henry,Ford,83 @@ -131,6 +131,15 @@ DBF! >>> with open('people.dbf', 'wb') as f: ... f.write(data.dbf) + +Pandas DataFrame! ++++++++++++++++++ + +:: + >>> print(data.df): + first_name last_name age + 0 John Adams 90 + 1 Henry Ford 83 It's that easy. From 34c14aca18c0e1f44fc39bb09df31ee07b7a3fbf Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 27 Aug 2017 03:41:26 -0400 Subject: [PATCH 2/4] Update README.rst --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index 590cc61..2d56c54 100644 --- a/README.rst +++ b/README.rst @@ -21,6 +21,7 @@ Output formats supported: - Excel (Sets + Books) - JSON (Sets + Books) - YAML (Sets + Books) +- Pandas DataFrames (Sets) - HTML (Sets) - TSV (Sets) - OSD (Sets) From 44e797d70e18b5ec7add9bf32e8d5b9ab179ece0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 27 Aug 2017 03:41:53 -0400 Subject: [PATCH 3/4] Update README.rst --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 2d56c54..a84cf97 100644 --- a/README.rst +++ b/README.rst @@ -65,13 +65,13 @@ Intelligently add new columns: :: Slice rows: :: - >>> print data[:2] + >>> print(data[:2]) [('John', 'Adams', 90), ('George', 'Washington', 67)] Slice columns by header: :: - >>> print data['first_name'] + >>> print(data['first_name']) ['John', 'George', 'Henry'] Easily delete rows: :: From 412e6902899dda6fa9488d3347f5285a80e89d7b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 27 Aug 2017 03:42:15 -0400 Subject: [PATCH 4/4] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index a84cf97..3a54c5c 100644 --- a/README.rst +++ b/README.rst @@ -135,8 +135,8 @@ DBF! Pandas DataFrame! +++++++++++++++++ - :: + >>> print(data.df): first_name last_name age 0 John Adams 90