py-econometrics / pyfixest

Fast High-Dimensional Fixed Effects Regression in Python following fixest-syntax
https://py-econometrics.github.io/pyfixest/
MIT License
152 stars 28 forks source link

`pandas` warning with two-way clustering #422

Closed s3alfisc closed 5 months ago

s3alfisc commented 5 months ago

Current changes in main produce pandas warnings:

" A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy self._cluster_df["cluster_intersection"] = cluster_df_one_str.str.cat( "