<jupyter_start><jupyter_text>GDP Comparison between Specific Countries<jupyter_code>lst = ['IND','ITA', 'USA', 'CHN']

dfs = []
for i in lst:
    dfs.append(df[df['Country Code'] == i])
    
    df_pr = pd.concat(dfs, axis = 0)
fig = px.line(df_pr, x = 'Year', y = 'Value', title = 'GDP Comparison - ' + '|'.join(lst), color = 'Country Name')

pyo.plot(fig, filename = '|'.join(lst) + '.html')
def comare_gdp(lst, isOpen):
    
    dfs = []
    for i in lst:
        dfs.append(df[df['Country Code'] == i])

        df_pr = pd.concat(dfs, axis = 0)
        
    fig = px.line(df_pr, x = 'Year', y = 'Value', title = 'GDP Comparison - ' + '|'.join(lst), 
                  color = 'Country Name')
    pyo.plot(fig, filename = '|'.join(lst) + '.html', auto_open = isOpen)
    
comare_gdp(['IND','USA'], False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2007168458781362, 'fraction_numerical': 0.0023894862604540022, 'mean_word_length': 3.0483091787439616, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '143096', 'license': 'Apache-2.0', 'n_tokens_mistral': 335, 'n_tokens_neox': 326, 'n_words': 73, 'path': '34. GDP Analysis - Compare GDP across Countries Advanced/GDP Analysis - Compare GDP across Countries Advanced.ipynb', 'repo_name': 'AshishJangra27/Data-Analysis-with-Python-GFG', 'size': '837'}