<jupyter_start><jupyter_text>Which years reported "Germany" indicator "Agriculture, value added (% of GDP)"?<jupyter_code>dfm.loc[('Germany','Agriculture, value added (% of GDP)')].dropna()
dfm.loc[('Germany','Agriculture, value added (% of GDP)')] # you may need the NaN for dimension agreement<jupyter_output><empty_output><jupyter_text>Which years reported "Germany" any indicator?<jupyter_code>dfm.loc[('Germany')].dropna()
dfm.loc[('Germany',slice(None))].dropna()<jupyter_output><empty_output><jupyter_text>Which years reported "Germany" any indicator in 1992?<jupyter_code>dfm.loc[('Germany',slice(None),1992)] # here we need to use the defailt slice command (all possible indicators)<jupyter_output><empty_output><jupyter_text>Which years reported the EU any indicator in 1992?Austria,Italy,Belgium,Latvia,Bulgaria,Lithuania,Croatia,Luxembourg,Cyprus,Malta,Czechia,Netherlands,Denmark,Poland,Estonia,Portugal,Finland,Romania,France,Slovakia,Germany,Slovenia,Greece,Spain,Hungary,Sweden,Ireland<jupyter_code>dfm.loc[('European Union',slice(None),1992)]
.loc[(['Austria',
          'Italy',
          'Belgium',
          #'Latvia',        # joined 2004
          #'Bulgaria',      # joined 2007
          #'Lithuania',     # joined 2004
          #'Croatia',       # joined 2013
          'Luxembourg',
          #'Cyprus',        # joined 2004
          #'Malta',         # joined 2004
          #'Czechia',       # joined 2004
          'Netherlands',
          'Denmark',
          #'Poland',        # joined 2004
          #'Estonia',       # joined 2004
          'Portugal',
          'Finland',
          #'Romania',       # joined 2007
          'France',
          #'Slovakia',      # joined 2004
          'Germany',
          #'Slovenia',      # joined 2004
          'Greece',
          'Spain',
          #'Hungary',       # joined 2004
          'Sweden',
          'Ireland'],slice(None),1992)]
_.mean(level=['Indicator Name']) # this should be the same as European Union
dfm.xs('Germany',level='Country Name')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1411251212415131, 'fraction_numerical': 0.03491755577109602, 'mean_word_length': 3.1676767676767676, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '167696', 'license': 'Apache-2.0', 'n_tokens_mistral': 781, 'n_tokens_neox': 645, 'n_words': 126, 'path': 'house-price-prediction/Untitled.ipynb', 'repo_name': 'OleBo/Stock-Prediction-Models', 'size': '2062'}