Skip to content

Commit

Permalink
Merge pull request #75 from Roche/dev
Browse files Browse the repository at this point in the history
merging v1.02. from dev
  • Loading branch information
ofajardo authored Sep 5, 2020
2 parents b8b91fc + 5924d32 commit c77ef7c
Show file tree
Hide file tree
Showing 84 changed files with 16,825 additions and 2,404 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ You can also check the [Module documentation](https://ofajardo.github.io/pyreads
| write_sav | write SPSS sav and zsav files |
| write_por | write SPSS Portable (POR) files |
| write_dta | write STATA dta files |
| write_xport | write SAS Xport (XPT) files version 5 |
| write_xport | write SAS Xport (XPT) files version 8 and 5 |


### More reading options
Expand Down Expand Up @@ -664,7 +664,7 @@ The following rules are used in order to convert from pandas/numpy/python types

Columns with mixed types are translated to character. This does not apply to column
cotaining np.nan, where the missing values are correctly translated. It also does not apply to columns with
user defined missing values in stata/sas where characters (a to z, A to Z, _) will be recorded as numeric.
user defined missing values in stata/sas where characters (a to z, A to Z, \_) will be recorded as numeric.

## Roadmap

Expand All @@ -674,11 +674,12 @@ user defined missing values in stata/sas where characters (a to z, A to Z, _) wi

pyreadstat builds on top of Readstat and therefore inherits its limitations. Currently those include:

* Not able to read SAS compressed files.
* XPT files v8 with labels are not read correctly (see [here](https://github.com/WizardMac/ReadStat/issues/208))
* Cannot read sas7bdat dataset labels (see [here](https://github.com/WizardMac/ReadStat/issues/180))
* Dates, datetimes and times in SPSS POR files are not translated to python dates, datetimes and times, but stay as
timestamps.
* Cannot write SAS sas7bdat and xport version 8 (version 5 is supported). Those files can be written but not read in
SAS and therefore are not supported in pyreadstat.
timestamps. (see [here](https://github.com/WizardMac/ReadStat/issues/160))
* Cannot write SAS sas7bdat. Those files can be written but not read in
SAS and therefore are not supported in pyreadstat. (see [here](https://github.com/WizardMac/ReadStat/issues/98))

Converting data types from foreign applications into python some times also bring some limitations:

Expand Down
10 changes: 10 additions & 0 deletions change_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# 1.0.2 (github, pypi and conda ...)
* Updated default widths for DATE and DATETIME formats (from Readstat src). That makes the files readable both in SPSS and PSPP,
solves issue #69.
* added support for binary compressed sas7bdat files
* fixes writing XPT files v8 that can be read in SAS. Reading XPT v8 improved.
* fixes writing files with NaT values.
* fixes #72: variable display width with long strings.
* fixes #70: variable_measures not set when writing sav files
* updated Readstat to commit 02562413ded25e920b96bbbfc4d87ed062aacec8, version 1.1.4

# 1.0.1 (github, pypi and conda 20200819)
* updated readstat to commit f867d75af24cb5ca355befc8607e3a9ff1898f15,
fixes issue #67
Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 84afa259158564947a5dd3afe89c6b15
config: b512e4c32556bf1138a5a49da857c454
tags: 645f666f9bcd5a90fca523b33c5a78b7
141 changes: 114 additions & 27 deletions docs/_build/html/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ div.clearer {
clear: both;
}

div.section::after {
display: block;
content: '';
clear: left;
}

/* -- relbar ---------------------------------------------------------------- */

div.related {
Expand Down Expand Up @@ -316,21 +322,27 @@ img.align-default, .figure.align-default {
div.sidebar {
margin: 0 0 0.5em 1em;
border: 1px solid #ddb;
padding: 7px 7px 0 7px;
padding: 7px;
background-color: #ffe;
width: 40%;
float: right;
clear: right;
overflow-x: auto;
}

p.sidebar-title {
font-weight: bold;
}

div.admonition, div.topic, blockquote {
clear: left;
}

/* -- topics ---------------------------------------------------------------- */

div.topic {
border: 1px solid #ccc;
padding: 7px 7px 0 7px;
padding: 7px;
margin: 10px 0 10px 0;
}

Expand All @@ -352,10 +364,6 @@ div.admonition dt {
font-weight: bold;
}

div.admonition dl {
margin-bottom: 0;
}

p.admonition-title {
margin: 0px 10px 5px 0px;
font-weight: bold;
Expand All @@ -366,9 +374,28 @@ div.body p.centered {
margin-top: 25px;
}

/* -- content of sidebars/topics/admonitions -------------------------------- */

div.sidebar > :last-child,
div.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
}

div.sidebar::after,
div.topic::after,
div.admonition::after,
blockquote::after {
display: block;
content: '';
clear: both;
}

/* -- tables ---------------------------------------------------------------- */

table.docutils {
margin-top: 10px;
margin-bottom: 10px;
border: 0;
border-collapse: collapse;
}
Expand Down Expand Up @@ -416,13 +443,13 @@ table.citation td {
border-bottom: none;
}

th > p:first-child,
td > p:first-child {
th > :first-child,
td > :first-child {
margin-top: 0px;
}

th > p:last-child,
td > p:last-child {
th > :last-child,
td > :last-child {
margin-bottom: 0px;
}

Expand Down Expand Up @@ -468,6 +495,10 @@ table.field-list td, table.field-list th {

/* -- hlist styles ---------------------------------------------------------- */

table.hlist {
margin: 1em 0;
}

table.hlist td {
vertical-align: top;
}
Expand Down Expand Up @@ -495,17 +526,37 @@ ol.upperroman {
list-style: upper-roman;
}

li > p:first-child {
:not(li) > ol > li:first-child > :first-child,
:not(li) > ul > li:first-child > :first-child {
margin-top: 0px;
}

li > p:last-child {
:not(li) > ol > li:last-child > :last-child,
:not(li) > ul > li:last-child > :last-child {
margin-bottom: 0px;
}

ol.simple ol p,
ol.simple ul p,
ul.simple ol p,
ul.simple ul p {
margin-top: 0;
}

ol.simple > li:not(:first-child) > p,
ul.simple > li:not(:first-child) > p {
margin-top: 0;
}

ol.simple p,
ul.simple p {
margin-bottom: 0;
}

dl.footnote > dt,
dl.citation > dt {
float: left;
margin-right: 0.5em;
}

dl.footnote > dd,
Expand Down Expand Up @@ -546,7 +597,7 @@ dl {
margin-bottom: 15px;
}

dd > p:first-child {
dd > :first-child {
margin-top: 0px;
}

Expand All @@ -560,6 +611,11 @@ dd {
margin-left: 30px;
}

dl > dd:last-child,
dl > dd:last-child > :last-child {
margin-bottom: 0;
}

dt:target, span.highlighted {
background-color: #fbe54e;
}
Expand Down Expand Up @@ -637,29 +693,68 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}

pre, div[class*="highlight-"] {
clear: both;
}

span.pre {
-moz-hyphens: none;
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
}

div[class*="highlight-"] {
margin: 1em 0;
}

td.linenos pre {
padding: 5px 0px;
border: 0;
background-color: transparent;
color: #aaa;
}

table.highlighttable {
margin-left: 0.5em;
display: block;
}

table.highlighttable tbody {
display: block;
}

table.highlighttable tr {
display: flex;
}

table.highlighttable td {
padding: 0 0.5em 0 0.5em;
margin: 0;
padding: 0;
}

table.highlighttable td.linenos {
padding-right: 0.5em;
}

table.highlighttable td.code {
flex: 1;
overflow: hidden;
}

.highlight .hll {
display: block;
}

div.highlight pre,
table.highlighttable pre {
margin: 0;
}

div.code-block-caption + div {
margin-top: 0;
}

div.code-block-caption {
margin-top: 1em;
padding: 2px 5px;
font-size: small;
}
Expand All @@ -668,10 +763,7 @@ div.code-block-caption code {
background-color: transparent;
}

div.code-block-caption + div > div.highlight > pre {
margin-top: 0;
}

table.highlighttable td.linenos,
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
user-select: none;
}
Expand All @@ -685,11 +777,7 @@ div.code-block-caption span.caption-text {
}

div.literal-block-wrapper {
padding: 1em 1em 0;
}

div.literal-block-wrapper div.highlight {
margin: 0;
margin: 1em 0;
}

code.descname {
Expand Down Expand Up @@ -740,8 +828,7 @@ span.eqno {
}

span.eqno a.headerlink {
position: relative;
left: 0px;
position: absolute;
z-index: 1;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/_static/css/badge_only.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit c77ef7c

Please sign in to comment.