capitalone / DataProfiler

What's in your data? Extract schema, statistics and entities from datasets
https://capitalone.github.io/DataProfiler
Apache License 2.0
1.41k stars 157 forks source link

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

Open carlsonp opened 5 months ago

carlsonp commented 5 months ago

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)
taylorfturner commented 5 months ago

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 commented 5 months ago

@carlsonp you should be good to rebase onto dev now

carlsonp commented 5 months ago

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 commented 5 months ago

Rebased

taylorfturner commented 4 months ago

@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!

carlsonp commented 4 months ago

@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?

taylorfturner commented 2 months ago

@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 commented 2 months ago

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