Skip to content

Instantly share code, notes, and snippets.

@BexTuychiev
Created January 15, 2024 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BexTuychiev/74235b154573953fe6e6b8ce2a785c4b to your computer and use it in GitHub Desktop.
Save BexTuychiev/74235b154573953fe6e6b8ce2a785c4b 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_csv("diamonds.csv", index=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment