

Discover more from Daily Dose of Data Science
High-quality insights on Data Science and Python, along with best practices — shared daily.
Get a free 550+ page data science PDF guide and 450+ practice questions notebook.
Over 49,000 subscribers
Continue reading
Hide Attributes While Printing A Dataclass Object
By default, a dataclass prints all the attributes of an object declared during its initialization.
But if you want to hide some specific attributes, declare 𝐫𝐞𝐩𝐫=𝐅𝐚𝐥𝐬𝐞 in its field, as shown above.
Share this post on LinkedIn: Post Link.
Find the code for my tips here: GitHub.
I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.