<jupyter_start><jupyter_text>Creating metadata<jupyter_code>import pandas as pd
wine = pd.read_csv('../data/raw/winemag-data-130k-v2.csv', index_col=0)
wine.head()
# use datapackage to create meatadata
import datapackage
package = datapackage.Package()
#now have a metadata dictionary called package
package.descriptor['name'] = 'wine-reviews'
package.descriptor['title'] = 'wineag reviews dataset'
package.descriptor
# Get some information about the data scheme
#two packages to assist with filesystem
import pathlib
import os
package.infer('data/**/*.csv')
!pwd<jupyter_output>/c/Users/lida014/ds_project/notebooks
{'fraction_non_alphanumeric': 0.11525974025974026, 'fraction_numerical': 0.012987012987012988, 'mean_word_length': 6.524390243902439, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '448979', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 211, 'n_tokens_neox': 195, 'n_words': 51, 'path': 'notebooks/00-creating-metadata.ipynb', 'repo_name': 'Maab-Ibrahim/ds_project', 'size': '616'}