<jupyter_start><jupyter_text><jupyter_code>import pandas as pd<jupyter_output><empty_output><jupyter_text>List Comprehension and dict comprehension to create dict with numbers as values<jupyter_code>Income_first_year = 300
Income_growth_rate = 0.07
Discount_rate = 0.04
total_years = 20
income = []
for i in range(total_years):
  income.append(Income_first_year*(1+Income_growth_rate)**i)
list(range(20))
income
discount_factor = []
for i in range(total_years):
  discount_factor.append((1+Discount_rate)**(-i))

discount_factor
df = pd.DataFrame()
df['Income'] = income
df['Discount Factor'] = discount_factor
df
df['Discounted Cashflow'] = df['Income'] * df['Discount Factor']
df
df['Discounted Cashflow'].sum()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1278600269179004, 'fraction_numerical': 0.020188425302826378, 'mean_word_length': 8.538461538461538, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '56245', 'license': 'MIT', 'n_tokens_mistral': 288, 'n_tokens_neox': 265, 'n_words': 53, 'path': 'MiniProject_CashFlowProjection.ipynb', 'repo_name': 'Rizwan-Ahmed-Surhio/Accountants', 'size': '743'}