diff --git a/README.md b/README.md index 15d2788..5da655e 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,7 @@ import pandas as pd import pyreadstat df = pd.DataFrame([[1,2.0,"a"],[3,4.0,"b"]], columns=["v1", "v2", "v3"]) +# column_labels can also be a dictionary with variable name as key and label as value column_labels = ["Variable 1", "Variable 2", "Variable 3"] pyreadstat.write_sav(df, "path/to/destination.sav", file_label="test", column_labels=column_labels) ``` diff --git a/change_log.md b/change_log.md index 62f2ff4..d6ff5e9 100644 --- a/change_log.md +++ b/change_log.md @@ -1,3 +1,8 @@ +# 1.1.1 (github, pypi and conda 2021.03.02) +* Using os.fsencode when reading file paths to support file system encoding and Path-like objects (#123) +* Updated Readstat source to version 1.1.6, fixes #117 +* Accepting dict as the column_label parameter for writing functions. + # 1.1.0 (github, pypi and conda 2021.03.02) * added meta.readstat_variable_types to track the type of binary variable in the original file. diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index f62e5ea..5ceb0b6 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree index c5108db..890cb72 100644 Binary files a/docs/_build/doctrees/index.doctree and b/docs/_build/doctrees/index.doctree differ diff --git a/docs/_build/html/.buildinfo b/docs/_build/html/.buildinfo index ee8caf2..43bba1f 100644 --- a/docs/_build/html/.buildinfo +++ b/docs/_build/html/.buildinfo @@ -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: 89e3764c88180734062ff2f9a49c4829 +config: 04378632c637137cdb0d4ae75e4e8ea6 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/_build/html/_static/documentation_options.js b/docs/_build/html/_static/documentation_options.js index 584dfc5..b283bb6 100644 --- a/docs/_build/html/_static/documentation_options.js +++ b/docs/_build/html/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '1.1.0', + VERSION: '1.1.1', LANGUAGE: 'None', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/_build/html/genindex.html b/docs/_build/html/genindex.html index 44cd3f9..35acbcd 100644 --- a/docs/_build/html/genindex.html +++ b/docs/_build/html/genindex.html @@ -7,7 +7,7 @@ -
- © Copyright 2018-2020, Otto Fajardo + © Copyright 2018-2021, Otto Fajardo
filename_path (str or pathlib.Path) – path to the file. The string is assumed to be utf-8 encoded
filename_path (str, bytes or Path-like object) – path to the file. In Python 2.7 the string is assumed to be utf-8 encoded
metadataonly (bool, optional) – by default False. IF true, no data will be read but only metadata, so that you can get all elements in the metadata object. The data frame will be set with the correct column names but no data.
dates_as_pandas_datetime (bool, optional) – by default False. If true dates will be transformed to pandas datetime64 instead of date.
filename_path (str or pathlib.Path) – path to the file. The string is assumed to be utf-8 encoded
filename_path (str, bytes or Path-like object) – path to the file. In Python 2.7 the string is assumed to be utf-8 encoded
metadataonly (bool, optional) – by default False. IF true, no data will be read but only metadata, so that you can get all elements in the metadata object. The data frame will be set with the correct column names but no data.
dates_as_pandas_datetime (bool, optional) – by default False. If true dates will be transformed to pandas datetime64 instead of date.
filename_path (str or pathlib.Path) – path to the file. The string is assumed to be utf-8 encoded
filename_path (str, bytes or Path-like object) – path to the file. The string is assumed to be utf-8 encoded
encoding (str, optional) – Defaults to None. If set, the system will use the defined encoding instead of guessing it. It has to be an iconv-compatible name
filename_path (str or pathlib.Path) – path to the file. The string is assumed to be utf-8 encoded.
filename_path (str, bytes or Path-like object) – path to the file. In python 2.7 the string is assumed to be utf-8 encoded.
metadataonly (bool, optional) – by default False. IF true, no data will be read but only metadata, so that you can get all elements in the metadata object. The data frame will be set with the correct column names but no data.
dates_as_pandas_datetime (bool, optional) – by default False. If true dates will be transformed to pandas datetime64 instead of date.
filename_path (str or pathlib.Path) – path to the file. The string is assumed to be utf-8 encoded
filename_path (str, bytes or Path-like object) – path to the file. In Python 2.7 the string is assumed to be utf-8 encoded
metadataonly (bool, optional) – by default False. IF true, no data will be read but only metadata, so that you can get all elements in the metadata object. The data frame will be set with the correct column names but no data.
dates_as_pandas_datetime (bool, optional) – by default False. If true dates will be transformed to pandas datetime64 instead of date.
filename_path (str or pathlib.Path) – path to the file. The string is assumed to be utf-8 encoded
filename_path (str, bytes or Path-like object) – path to the file. In python 2.7 the string is assumed to be utf-8 encoded
metadataonly (bool, optional) – by default False. IF true, no data will be read but only metadata, so that you can get all elements in the metadata object. The data frame will be set with the correct column names but no data.
dates_as_pandas_datetime (bool, optional) – by default False. If true dates will be transformed to pandas datetime64 instead of date.
- © Copyright 2018-2020, Otto Fajardo + © Copyright 2018-2021, Otto Fajardo
diff --git a/docs/_build/html/py-modindex.html b/docs/_build/html/py-modindex.html index 8bb2d1c..a3a1b29 100644 --- a/docs/_build/html/py-modindex.html +++ b/docs/_build/html/py-modindex.html @@ -7,7 +7,7 @@ -- © Copyright 2018-2020, Otto Fajardo + © Copyright 2018-2021, Otto Fajardo
- © Copyright 2018-2020, Otto Fajardo + © Copyright 2018-2021, Otto Fajardo