Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Use expanduser when writing dataframes to files? #23473
Code Sample, a copy-pastable example if possible
df = pd.DataFrame([[1,1],[2,2]]) df.to_pickle('~/df.pkl') df.to_json('~/df.json') # etc.
Perhaps the fix is to add
as we have in