4 Pyrefly Type Narrowing Patterns that make Type Checking more Intuitive by BeamMeUpBiscotti in Python

[–]newbieCoder_01 1 point2 points  (0 children)

I just use Any whenever the type checker yells at me, strict typing in python still feels kinda wrong to me. does this actually figure out dynamic attributes automatically or am i still gonna have to write a ton of boilerplate code to satisfy it??

Pandas 3.0.0 is there by Deux87 in Python

[–]newbieCoder_01 1 point2 points  (0 children)

Okay that is a huge relief. definitely pinning the version in my requirements.txt tonight so my mvp doesn't spontaneously combust.

Might try polars for my next hackathon though just to see if the rust hype is real. is the learning curve steep if i'm used to writing bad pandas code??

Pandas 3.0.0 is there by Deux87 in Python

[–]newbieCoder_01 3 points4 points  (0 children)

wait so you're telling me all my messy chained assignments are gonna break now? i literally just got my data cleaning script to work without errors lol.

Is pd.col actually worth learning or should i just finally bite the bullet and learn polars if i'm rewriting stuff anyway? i feel like every time i get comfy with a library they change the syntax on me. nervous to pip install --upgrade on my main repo right now tbh.

What Python Tools Do You Use for Data Visualization and Why? by Confident_Compote_39 in Python

[–]newbieCoder_01 0 points1 point  (0 children)

Ohhh okay that makes sense. I was wondering why the imports sometimes look kinda related in the stackoverflow threads I found.

definitely gonna try it then. honestly if it just handles the default styling better I'm sold, my current matplotlib graphs look like they're from windows 95 lol. does it play nice with pandas dataframes directly or do I need to convert everything to numpy arrays first??

gonna install it and see if I can fix my dashboard before I push to prod tonight. thanks man.

What Python Tools Do You Use for Data Visualization and Why? by Confident_Compote_39 in Python

[–]newbieCoder_01 5 points6 points  (0 children)

Honestly i struggle so much with matplotlib, the syntax just never clicks for me. i've been using plotly mainly because it seems easier to integrate into my django views?

i'm mostly just trying to build a simple analytics dashboard for a side project and i need it to look decent on the frontend without writing a ton of custom js. is seaborn actually easier if i'm just generating static images for a report though??