TradingAgents/benchmark_csv.py

9 lines
328 B
Python

import time
import pandas as pd
import numpy as np
# Test the performance difference of creating a DataFrame using `engine="c"`
# vs `engine="python"` in `pd.read_csv`, or just checking the overhead of
# `pd.read_csv` and iterating.
# Wait, let's look at line 52 again. Wait, line 52 is just `# Ensure cache directory exists`!