MCPcopy
hub / github.com/pandas-dev/pandas / test_pickle_fig

Method test_pickle_fig

pandas/tests/plotting/test_datetimelike.py:1687–1693  ·  view source on GitHub ↗
(self, temp_file, frame_or_series, idx)

Source from the content-addressed store, hash-verified

1685 ],
1686 )
1687 def test_pickle_fig(self, temp_file, frame_or_series, idx):
1688 # GH18439, GH#24088, statsmodels#4772
1689 df = frame_or_series(range(5), index=idx)
1690 fig, ax = plt.subplots(1, 1)
1691 df.plot(ax=ax)
1692 with temp_file.open(mode="wb") as path:
1693 pickle.dump(fig, path)
1694
1695
1696def _check_plot_works(f, freq=None, series=None, *args, **kwargs):

Callers

nothing calls this directly

Calls 3

frame_or_seriesFunction · 0.85
plotMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected