Skip to content

Commit 2e4c2cb

Browse files
committed
Minor changes
1 parent 72c22a0 commit 2e4c2cb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ci/code_checks.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
118118

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

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

pandas/core/frame.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -1853,8 +1853,11 @@ def to_stata(self, fname, convert_dates=None, write_index=True,
18531853
18541854
Parameters
18551855
----------
1856-
fname : str, file descriptor or pathlib.Path
1857-
String or path to file which needs to be converted.
1856+
fname : str, buffer or path object
1857+
String, path object (pathlib.Path or py._path.local.LocalPath) or
1858+
object implementing a binary write() function. If using a buffer
1859+
then the buffer will not be automatically closed after the file
1860+
data has been written.
18581861
convert_dates : dict
18591862
Dictionary mapping columns containing datetime types to stata
18601863
internal format to use when writing the dates. Options are 'tc',
@@ -1917,12 +1920,10 @@ def to_stata(self, fname, convert_dates=None, write_index=True,
19171920
19181921
Examples
19191922
--------
1920-
Converting DataFrame to Stata "dta" file using the to_stata method.
1921-
19221923
>>> df = pd.DataFrame({'animal': ['falcon', 'parrot', 'falcon',
19231924
... 'parrot'],
19241925
... 'speed': [350, 18, 361, 15]})
1925-
>>> df.to_stata('animals.dta')
1926+
>>> df.to_stata('animals.dta') # doctest: +SKIP
19261927
"""
19271928
kwargs = {}
19281929
if version not in (114, 117):

0 commit comments

Comments
 (0)