Public EcoRouter Knowledge · AI-generated content · September 28, 2026
How do I load a CSV into a pandas DataFrame and see summary statistics?
The question
How do I load a CSV into a pandas DataFrame and see summary statistics?
Efficient
To load a CSV file into a pandas DataFrame and view its summary statistics, you can use the following code:
python
import pandas as pd
# Load the CSV file
df = pd.read_csv('your_file.csv')
# View summary statistics
print(df.describe())A few notes:
pd.read_csv(): This function reads your data into a DataFrame. Make sure the file path is correct.df.describe(): This provides a quick statistical summary of all numeric columns in your DataFrame (including count, mean, standard deviation, min, max, and quartiles).df.info(): If you also want to see the column data types and check for missing values, you can runprint(df.info())as well.
Answering this used an estimated 90% less than EcoRouter’s configured frontier baseline
- Routed to
- Efficient
- Tokens
- 208 in / 180 out
- Cost
- $0.0003
- Baseline
- $0.0033
Figures recorded by EcoRouter when this answer was generated, and fixed at that moment. Cost comparisons are against a configured reference model, not a measurement of electricity, carbon or water.
Ask about this
Ask EcoRouter a follow-up using this Knowledge as context. Nothing becomes public unless you choose to publish it.
Ask a follow-up0 views
Comments
No comments yet.