{"library":"fastparquet","code":"import pandas as pd\nfrom fastparquet import write, ParquetFile\nimport os\n\n# Create a sample DataFrame\ndf = pd.DataFrame({\n    'col1':,\n    'col2': ['A', 'B', 'C', 'D'],\n    'col3': [True, False, True, False]\n})\n\nfilename = \"example.parquet\"\n\n# Write the DataFrame to a Parquet file with Snappy compression\nwrite(filename, df, compression='SNAPPY')\nprint(f\"DataFrame successfully written to '{filename}'.\")\n\n# Read the Parquet file back into a DataFrame\npf = ParquetFile(filename)\ndf_read = pf.to_pandas()\nprint(f\"DataFrame successfully read from '{filename}':\")\nprint(df_read)\n\n# Clean up the created file\nos.remove(filename)","lang":"python","description":"This quickstart demonstrates how to create a Pandas DataFrame, write it to a Parquet file using `fastparquet.write`, and then read the data back into a new DataFrame using `fastparquet.ParquetFile.to_pandas()`. It also includes basic file cleanup.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}