Skip to main content

12 posts tagged with "pandas"

pandas, the Python Library for Tables of Data and DataFrames

View All Tags

Fixed: Pandas4Warning "For backward compatibility, 'str' dtypes are included by select_dtypes when 'object' dtype is specified" in MLflow log_table

· 9 min read
Jagdish Kumawat
Founder @ Dewiride

pytest passed all 31 tests of a project that logs tables to MLflow, then printed a warnings summary: Pandas4Warning: For backward compatibility, 'str' dtypes are included by select_dtypes when 'object' dtype is specified. It comes from one line inside mlflow.log_table() meeting pandas 3's new text type, and it changes nothing about the tables you log. One filterwarnings line hides exactly this warning until an MLflow release stops raising it.

How to Load the California Housing Dataset in Python with scikit-learn

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

The California Housing dataset is the classic dataset for learning regression: 20,640 districts, 8 numbers about each, and a house value to predict. scikit-learn downloads it for you with one function. This guide loads it as a pandas table, explains every column, shows where the download is kept, and points out the $500,000 cap that surprises people.