Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankarlos committed Nov 6, 2018
1 parent 6b16245 commit 42fec06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then

MSG='Doctests frame.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/frame.py \
-k"-axes -combine -itertuples -join -nunique -pivot_table -quantile -query -reindex -reindex_axis -replace -round -set_index -stack -to_stata"
-k"-axes -combine -itertuples -join -nunique -pivot_table -quantile -query -reindex -reindex_axis -replace -round -set_index -stack"
RET=$(($RET + $?)) ; echo $MSG "DONE"

MSG='Doctests series.py' ; echo $MSG
Expand Down
17 changes: 9 additions & 8 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1856,8 +1856,11 @@ def to_stata(self, fname, convert_dates=None, write_index=True,
Parameters
----------
fname : str, file descriptor or pathlib.Path
String or path to file which needs to be converted.
fname : str, buffer or path object
String, path object (pathlib.Path or py._path.local.LocalPath) or
object implementing a binary write() function. If using a buffer
then the buffer will not be automatically closed after the file
data has been written.
convert_dates : dict
Dictionary mapping columns containing datetime types to stata
internal format to use when writing the dates. Options are 'tc',
Expand Down Expand Up @@ -1914,18 +1917,16 @@ def to_stata(self, fname, convert_dates=None, write_index=True,
See Also
--------
pandas.read_stata : Import Stata data files.
pandas.io.stata.StataWriter : Writer for Stata data files.
pandas.io.stata.StataWriter117 : Writer for version 117 files.
read_stata : Import Stata data files.
io.stata.StataWriter : Writer for Stata data files.
io.stata.StataWriter117 : Writer for version 117 files.
Examples
--------
Converting DataFrame to Stata "dta" file using the to_stata method.
>>> df = pd.DataFrame({'animal': ['falcon', 'parrot', 'falcon',
... 'parrot'],
... 'speed': [350, 18, 361, 15]})
>>> df.to_stata('animals.dta')
>>> df.to_stata('animals.dta') # doctest: +SKIP
"""
kwargs = {}
if version not in (114, 117):
Expand Down

0 comments on commit 42fec06

Please sign in to comment.