Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Regression in 0.20: IO functions can't handle pathlib.Path objects anymore #16291
Code Sample, a copy-pastable example if possible
import numpy as np import pandas as pd from pathlib import Path d = pd.DataFrame(np.random.randn(25).reshape((5, 5))) d.to_pickle('test.pickle') d2 = pd.read_pickle(Path('test.pickle'))
In 0.19, Pandas' IO functions accepted PathLike objects as per PEP 519. This is broken in 0.20.1.
nothing, code should run without errors or output