DataProfiler icon indicating copy to clipboard operation
DataProfiler copied to clipboard

feat: add __str__ methods to the various part of the profiler options

Open carlsonp opened this issue 11 months ago • 8 comments

How about this as a starting point for adding some helpful printing of Data Profiler options?

import dataprofiler as dp
profile_options = dp.ProfilerOptions()
print(profile_options)

carlsonp avatar Mar 13 '24 21:03 carlsonp

You'll want to rebase onto dev... had some other PRs from @gliptak merge into dev this morning.

Have you done rebases before, @carlsonp?

taylorfturner avatar Mar 14 '24 14:03 taylorfturner

@carlsonp you should be good to rebase onto dev now

taylorfturner avatar Mar 22 '24 19:03 taylorfturner

Thanks, I'll get to it next week. Fighting off a bug.

On Fri, Mar 22, 2024, 2:51 PM Taylor Turner @.***> wrote:

@carlsonp https://github.com/carlsonp you should be good to rebase onto dev now

— Reply to this email directly, view it on GitHub https://github.com/capitalone/DataProfiler/pull/1115#issuecomment-2015803205, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5DNM6YUBHLUBLCTAKNNDYZSDTNAVCNFSM6AAAAABEU57M7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJVHAYDGMRQGU . You are receiving this because you were mentioned.Message ID: @.***>

carlsonp avatar Mar 22 '24 23:03 carlsonp

Rebased

carlsonp avatar Mar 24 '24 16:03 carlsonp

@carlsonp yeah, I like the route you are going. Once you add unit tests, just tag me and I'll take another look at it. Cheers!

taylorfturner avatar Apr 08 '24 17:04 taylorfturner

@carlsonp yeah, I like the route you are going. Once you add unit tests, just tag me and I'll take another look at it. Cheers!

@taylorfturner Can you please provide a suggested starting point for which file to add the unit tests?

carlsonp avatar Apr 24 '24 14:04 carlsonp

@carlsonp yeah, I like the route you are going. Once you add unit tests, just tag me and I'll take another look at it. Cheers!

@taylorfturner Can you please provide a suggested starting point for which file to add the unit tests?

Yes, indeed! I would actually move some of the __str__ methods you overwrite in this PR into base_options.py. Then I think your testing would much more simple. Ultimately this would allow you to test main implementation in test_base_option.py then you could build out small scenarios in the other option test files in tests/profilers/profiler_options/...

taylorfturner avatar Jun 07 '24 18:06 taylorfturner

@carlsonp you'll want a rebase here too onto dev

taylorfturner avatar Jun 07 '24 18:06 taylorfturner