Skip to content

Commit 21bc4d5

Browse files
jjames34harisbal
authored and
harisbal
committed
Fixed issue with leftover test.json file (pandas-dev#19879)
1 parent 86dfeae commit 21bc4d5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/source/whatsnew/v0.23.0.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,22 @@ Please note that the string `index` is not supported with the round trip format,
214214
:okwarning:
215215

216216
df.index.name = 'index'
217+
217218
df.to_json('test.json', orient='table')
218219
new_df = pd.read_json('test.json', orient='table')
219220
new_df
220-
print(new_df.index.name)
221+
new_df.dtypes
222+
223+
.. ipython:: python
224+
:suppress:
225+
226+
import os
227+
os.remove('test.json')
228+
221229

222230
.. _whatsnew_0230.enhancements.assign_dependent:
223231

232+
224233
``.assign()`` accepts dependent arguments
225234
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
226235

0 commit comments

Comments
 (0)