Skip to content

Instantly share code, notes, and snippets.

@fitzy1321
Last active December 3, 2024 23:29
Show Gist options
  • Save fitzy1321/bb348a83bdbef9636ddec550c8a8aad7 to your computer and use it in GitHub Desktop.
Save fitzy1321/bb348a83bdbef9636ddec550c8a8aad7 to your computer and use it in GitHub Desktop.
csv inspector notebook
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from itables import init_notebook_mode\n",
"import polars as pl\n",
"\n",
"init_notebook_mode(all_interactive=True, connected=False)\n",
"\n",
"file_path = ''\n",
"df = pl.read_csv(file_path, separator=',')\n",
"df"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment