<commit_before>from common import *

def test_describe(ds_local):
  ds = ds_local
  pdf = ds.describe()
  assert 'class \'str\'' not in str(pdf)

def test_describe_missing():
    x = np.array([5, '', 1, 4, None, 6 , np.nan, np.nan, 10, '', 0, 0, -13.5])
    y = np.array([5, -2, 1, 4, 0, 6 , np.nan, np.nan, 10, 42, 0, np.nan, -13.5])
    df = vaex.from_arrays(x=x, y=y)

    desc_df = df.describe()

    assert desc_df.x.loc['missing'] == 2
    assert desc_df.y.loc['missing'] == 3<commit_msg>Bringing describe_test.py to PEP8 standards.<commit_after>from common import *


def test_describe(ds_local):
    ds = ds_local
    pdf = ds.describe()
    assert 'class \'str\'' not in str(pdf)


def test_describe_missing():
    x = np.array([5, '', 1, 4, None, 6, np.nan, np.nan, 10, '', 0, 0, -13.5])
    y = np.array([5, -2, 1, 4, 0, 6, np.nan, np.nan, 10, 42, 0, np.nan, -13.5])
    df = vaex.from_arrays(x=x, y=y)

    desc_df = df.describe()

    assert desc_df.x.loc['missing'] == 2
    assert desc_df.y.loc['missing'] == 3
{'fraction_non_alphanumeric': 0.19707317073170733, 'fraction_numerical': 0.05365853658536585, 'mean_word_length': 3.023529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '884647', 'n_tokens_mistral': 479, 'n_tokens_neox': 419, 'n_words': 111}