Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add path to metadata JSON #143

Closed
csala opened this issue Jan 15, 2020 · 0 comments · Fixed by #144
Closed

Add path to metadata JSON #143

csala opened this issue Jan 15, 2020 · 0 comments · Fixed by #144
Assignees
Milestone

Comments

@csala
Copy link
Contributor

csala commented Jan 15, 2020

If a table is added to Metadata passing a path, the path should be added to the metadata dictionary alongside its fields:

In [1]: from sdv import Metadata                                                                                                      

In [2]: metadata = Metadata()                                                                                                         

In [3]: metadata.add_table('customers', 'quickstart/customers.csv')                                                                   

In [4]: metadata.to_dict()['tables']['customers'].keys()                                                                              
Out[4]: dict_keys(['fields'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants