Skip to content

Commit

Permalink
reporting the missing string at the top of the report
Browse files Browse the repository at this point in the history
  • Loading branch information
elliewix committed Aug 12, 2016
1 parent 9439d90 commit 4bd6e85
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def review_csv(file, mode = 'rt', headers = True, index_row = True, missing = ''


num_columns = len(col_names)
col_info = {'csv_basic': {'num_rows': num_rows, 'num_columns': num_columns}, 'cols': {}}
col_info = {'csv_basic': {'num_rows': num_rows, 'num_columns': num_columns, 'missing': missing}, 'cols': {}}
for i, col in enumerate(col_names):
info = {}
num_uniques = len(set(data[i]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<p>Data Profile for MiddlesexVagrants1777-1786v1.1.csv</p>
<p>Generated on: 2016-Aug-11 19:58:31</p>
<p>Generated on: 2016-Aug-11 20:05:31</p>
<p>Number of columns: 29
Number of rows: 14789</p>
Number of rows: 14789
Using missing value of: [missing]</p>
<h2><strong>Vagrant ID Number</strong></h2>
<ul>
<li>Description of column: </li>
Expand Down
3 changes: 2 additions & 1 deletion vagrant-profiles/MiddlesexVagrants1777-1786v1_DataProfile.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Data Profile for MiddlesexVagrants1777-1786v1.1.csv

Generated on: 2016-Aug-11 19:58:31
Generated on: 2016-Aug-11 20:05:31


Number of columns: 29
Number of rows: 14789
Using missing value of: [missing]

**Vagrant ID Number**
-------------------
Expand Down
3 changes: 2 additions & 1 deletion vagrant-profiles/vagrant-profiles_DataProfiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,11 @@
},
"csv_basic": {
"num_rows": 14789,
"missing": "[missing]",
"num_columns": 29
},
"file_metadata": {
"last_access": "2016-08-11 19:58:30",
"last_access": "2016-08-11 20:05:31",
"size": 4641076,
"last_modified": "2016-04-24 17:31:01",
"filename": "MiddlesexVagrants1777-1786v1.1.csv"
Expand Down

0 comments on commit 4bd6e85

Please sign in to comment.