Created
October 17, 2025 12:05
-
-
Save jrosell/76eb971e304544591d1475ef16cefa35 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 20, | |
| "id": "993e80f5", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "\u001b[2mAudited \u001b[1m3 packages\u001b[0m \u001b[2min 6ms\u001b[0m\u001b[0m\r\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "!export UV_NO_REPLACE=1 uv venv\n", | |
| "!uv pip install notebook ipython pandas" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 21, | |
| "id": "f440f6de", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "Overwriting data.csv\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "%%writefile data.csv\n", | |
| "name,revenue\n", | |
| "Jordi,200\n", | |
| "Hans,100\n", | |
| "Sven,300\n", | |
| "Jonas,120" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 22, | |
| "id": "fe2cd140", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| " name revenue\r\n", | |
| "0 Jordi 200\r\n", | |
| "1 Hans 100\r\n", | |
| "2 Sven 300\r\n", | |
| "3 Jonas 120\r\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "!uv run run.py" | |
| ] | |
| } | |
| ], | |
| "metadata": { | |
| "language_info": { | |
| "name": "python" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 5 | |
| } |
This file contains hidden or 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 | |
| df = pd.read_csv("data.csv") | |
| print(df) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment