Convert Pandas DataFrame to & from In-Memory Feather
Convert Pandas DataFrame to & from In-Memory Feather Question: Using the IO tools in pandas it is possible to convert a DataFrame to an in-memory feather buffer: import pandas as pd from io import BytesIO df = pd.DataFrame({‘a’: [1,2], ‘b’: [3.0,4.0]}) buf = BytesIO() df.to_feather(buf) However, using the same buffer to convert back to a …
Total answers: 1