How I Organize Data In Python with Dataclasses

preview_player
Показать описание


Disclaimer: These are affiliate links and as an Amazon Associate I earn from qualifying purchases
Рекомендации по теме
Комментарии
Автор

excellent video as usual, probably you can expand in how to use dataclasses with databases, for example with sqlalchemy

ferrandonea
Автор

Wooooah I've been looking for something like this. Normally I'd create a class from scratch to store attributes, retrievable in dot notation. This is next level simplicity

coyoteden
Автор

This in off topic question, but I love how straight forward your videos are. I was wondering if you could do a video on how you organize your workspaces, files, test projects, YouTube walkthrough’s etc? I’m having a hard time figuring out an efficient, useful, and understandable organization system that prevents unintended duplicates, etc. brand new in the coding world, so I apologize if this is an easy topic. I found very quickly that files intended for a project could get out of hand fast, then figuring out everything the middle including not having a whole folder of things like packages that just seemed to multiply like rabbits. Eventually I ran into a bug that I couldn’t tell if it was my fault, a bug in the package, or I moved/deleted something that shouldn’t have been, or downloaded an extra copy. I finally just had to scrap quite a bit. Not a huge deal right now, but I really want to figure out a good and efficient file storage for my regular files, coding files, test project files, actual projects files, package locations, and eventually creating scripts that get used often that I can reference. My problem right now is I’m not sure how to do some things so I find myself attempting a new method to test it out and it gets really messy, really fast. Thanks for the content! Love watching your videos.

siriushp
Автор

I've struggled to get to grips with dataclasses and find use cases for them in my work but this really helped. Also really relaxing to watch and listen to this video haha

starchildluke
Автор

Excellent. dataclass and asdict = very helpful. Thanks

stewart
Автор

Thanks for the video
I have been using pydantic library for a while it's pretty cool but still we need usage of classes in python i think

srikanthkoltur
Автор

Great explanation with good example...again👏

pilgrim
Автор

Can we harmoniously combine dataclasses and pydantic?

chriskeo
Автор

Excellent video! I have two question, I think Optional is not compatible with dict type, what we can do in that case? another question: is the dataclass decorator compatible when is using inheritance ?

StraightCoding
Автор

I deal every day with data classes when i develop apps with flutter. In private datascraping projects with python i use dataclasses too..

Klausi-uqxq
Автор

mate, can you tell me how long it takes to learn python + django from scratch for backend & website development? ( no data science, game dev or anything but website dev ) . i have understanding of html, css & basic JS .

iwilllearneverything
Автор

Hi i am a Data science student and wanted to learn Web Scrapping, so can you please suggest me which of your playlist should I start with. I am at bignier level in Python as well.

PavanVarma
Автор

In the video you say "You can add type hints". This should have been "You must add type hints" as they are mandatory with dataclasses.

gedtoon
Автор

Do you have a tutorial on how to get certain information out of an json or cvs file?

TomKnudsen
Автор

Does anyone have that URL handy so that I can just copy and paste?

edwardwong
Автор

Can you please add a video on how to use dataclass with pandas

sandec
Автор

What about using @dataclass with Scrapy (and then returning as dict)?

jamieosh
Автор

really want to use dataclasses but my data have 78 columns, maybe next time

enricoroselino
Автор

Man, I was following allowing until I hit the console for a 'run' and....😐🥵🥺🤯😭😭
Maybe because I'm using Python 3.7.16 in the current vm, however, I had to create a whole new function 'get_attributes(sef):' for this one line: '''o = Optional[list[str]]''', just so the imported Optional module would work!! Because this method didn't work for me out the box...

The main take-away, I now actually get python algorithms a bit more...now if only the OTHER Tutorials were soo "easy" to follow and 😣😓

robinpipslayertekprofitsfa
Автор

Christ Almighty, that went over my head a bit

illegalsmirf