python3 -c 'import pandas as pd; df=pd.read_csv("data.csv"); print(df.describe())'
Print pandas summary statistics for a CSV
pandas is Python's data analysis library, and read_csv loads a CSV into a DataFrame, the table-like core structure. The describe() method prints count, mean, standard deviation, min, quartiles, and max for every numeric column. The -c flag runs the whole snippet as one program. This one-liner matches csvstat and R's summary() output.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.