Created
January 5, 2024 16:28
-
-
Save BexTuychiev/ee88f42206a0cfecf696ad6462e93bf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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