Skip to content

Commit 8697ea8

Browse files
committed
Minor changes
1 parent 13ad994 commit 8697ea8

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ci/code_checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
148148

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

154154
MSG='Doctests series.py' ; echo $MSG

pandas/core/frame.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,8 +1863,11 @@ def to_stata(self, fname, convert_dates=None, write_index=True,
18631863
18641864
Parameters
18651865
----------
1866-
fname : str, file descriptor or pathlib.Path
1867-
String or path to file which needs to be converted.
1866+
fname : str, buffer or path object
1867+
String, path object (pathlib.Path or py._path.local.LocalPath) or
1868+
object implementing a binary write() function. If using a buffer
1869+
then the buffer will not be automatically closed after the file
1870+
data has been written.
18681871
convert_dates : dict
18691872
Dictionary mapping columns containing datetime types to stata
18701873
internal format to use when writing the dates. Options are 'tc',
@@ -1927,12 +1930,10 @@ def to_stata(self, fname, convert_dates=None, write_index=True,
19271930
19281931
Examples
19291932
--------
1930-
Converting DataFrame to Stata "dta" file using the to_stata method.
1931-
19321933
>>> df = pd.DataFrame({'animal': ['falcon', 'parrot', 'falcon',
19331934
... 'parrot'],
19341935
... 'speed': [350, 18, 361, 15]})
1935-
>>> df.to_stata('animals.dta')
1936+
>>> df.to_stata('animals.dta') # doctest: +SKIP
19361937
"""
19371938
kwargs = {}
19381939
if version not in (114, 117):

0 commit comments

Comments
 (0)