Skip to content

Instantly share code, notes, and snippets.

View titouanfreville's full-sized avatar
🐊

Titouan titouanfreville

🐊
View GitHub Profile
@titouanfreville
titouanfreville / test_base-model_to_df.py
Created April 13, 2024 09:45
Simple perf test for pydantic to dataframe
import cProfile
import pandas as pd
from pydantic import BaseModel
class SomeModel(BaseModel):
col1: int
col2: str