Giter Site home page Giter Site logo

Support Polars about pyfixest HOT 7 CLOSED

vincentarelbundock avatar vincentarelbundock commented on July 23, 2024
Support Polars

from pyfixest.

Comments (7)

s3alfisc avatar s3alfisc commented on July 23, 2024 1

Yes, thanks for the suggestion. I had not implemented it yet because I thought it would require to make polars a hard dependency, but as you correctly suggest I can solve this with a try-except statement. I'll implement this tomorrow!

from pyfixest.

vincentarelbundock avatar vincentarelbundock commented on July 23, 2024 1

Yay!

from pyfixest.

s3alfisc avatar s3alfisc commented on July 23, 2024

Hi @vincentarelbundock , polars should now be supported for feols() and fepois() data input arg =)

from pyfixest.estimation import feols, fepois
from pyfixest.utils import get_data
import polars as pl

data = get_data()
data_pl = pl.from_pandas(data)
fit = feols("Y ~ X1", data=data)

fit.tidy()

#	Estimate	Std. Error	t value	Pr(>|t|)	2.5 %	97.5 %
# Coefficient						
# Intercept	2.230321	0.088980	25.065381	0.000000	2.055711	2.404931
# X1	0.333686	0.069076	4.830700	0.000002	0.198135	0.469238

I have a few other bug fixes on the way, hopefully I can publish a new version to PyPi by tomorrow.

from pyfixest.

vincentarelbundock avatar vincentarelbundock commented on July 23, 2024

love it.

from pyfixest.

vincentarelbundock avatar vincentarelbundock commented on July 23, 2024

sorry, one question since I can't test now: This works in fit.predict() too?

from pyfixest.

s3alfisc avatar s3alfisc commented on July 23, 2024

Ah, no; I'll update this quickly.

from pyfixest.

s3alfisc avatar s3alfisc commented on July 23, 2024

Support for predict() is added with #241 =)

from pyfixest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.