You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: import pandas as pd
In [2]: import xport.v56
In [3]: df = pd.DataFrame()
In [4]: with open('example.xpt', 'wb') as f:
...: xport.v56.dump(df, f)
...:
However, it'll be best if you use the xport.Dataset to set metadata for your dataset.
Hi, can you explain how we can save the dataframe (df) to new xpt file?
Thanks,
Sagar
The text was updated successfully, but these errors were encountered: