Skip to content

Instantly share code, notes, and snippets.

@BexTuychiev
Created January 5, 2024 16:28
Show Gist options
  • Save BexTuychiev/ee88f42206a0cfecf696ad6462e93bf1 to your computer and use it in GitHub Desktop.
Save BexTuychiev/ee88f42206a0cfecf696ad6462e93bf1 to your computer and use it in GitHub Desktop.
import pandas as pd
import seaborn as sns
# Load the dataset from Seaborn
diamonds = sns.load_dataset("diamonds")
# Create a Pandas DataFrame
df = pd.DataFrame(diamonds)
# Save the DataFrame directly as a Parquet file
df.to_parquet("diamonds.parquet")
print("Diamonds dataset saved as diamonds.parquet (using Pandas)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment