Hive-Systems / pyfair

Factor Analysis of Information Risk (FAIR) model written in Python. Managed and maintained by Hive Systems
https://www.hivesystems.com
MIT License
89 stars 45 forks source link

Update base_report.py #65

Open cneskey opened 7 months ago

cneskey commented 7 months ago

FutureWarning about aggregation functions (np.mean, np.std, np.min, np.max): The warning suggests that in future versions of pandas, the callable will be used directly, so to maintain the current behavior, we should pass the string name of the aggregation function instead of the numpy function. from risk_results = risk_results.agg([np.mean, np.std, np.min, np.max]) to risk_results = risk_results.agg(['mean', 'std', 'min', 'max'])