From 4c0b33d46e3e8336064a4464cff49d461599df7b Mon Sep 17 00:00:00 2001 From: andy1771 Date: Tue, 2 Oct 2018 17:20:51 +0530 Subject: [PATCH 1/2] Added description in the docstring of the function to_stata in pandas/core/frame.py --- pandas/core/frame.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4e8b4e3a6bec..3b6cf324e146a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1820,12 +1820,16 @@ def to_stata(self, fname, convert_dates=None, write_index=True, data_label=None, variable_labels=None, version=114, convert_strl=None): """ - Export Stata binary dta files. + Transform the Dataframe to a Stata dataset. + + This functions writes the Dataframe to a Stata dataset file. + "dta" files contain a Stata dataset. Stata is a software for statistics + and data science. Parameters ---------- fname : path (string), buffer or path object - string, path object (pathlib.Path or py._path.local.LocalPath) or + String, path object (pathlib.Path or py._path.local.LocalPath) or object implementing a binary write() functions. If using a buffer then the buffer will not be automatically closed after the file data has been written. From bedeca8d3800f501842452ce9471ff60393f299e Mon Sep 17 00:00:00 2001 From: Aayush Sharma Date: Tue, 2 Oct 2018 17:32:47 +0530 Subject: [PATCH 2/2] Update frame.py --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3b6cf324e146a..fbe17c9669f0b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1821,7 +1821,7 @@ def to_stata(self, fname, convert_dates=None, write_index=True, convert_strl=None): """ Transform the Dataframe to a Stata dataset. - + This functions writes the Dataframe to a Stata dataset file. "dta" files contain a Stata dataset. Stata is a software for statistics and data science.