<jupyter_start><jupyter_text>---title: "Creating_Dataframes"author: "Aavinash"date: 2020-08-12description: "-"type: technical_notedraft: false---<jupyter_code>import pandas as pd
lst = ['Geeks', 'For', 'Geeks', 'is', 
            'portal', 'for', 'Geeks']
 
df = pd.DataFrame(lst)
df
data = {'Name':['Tom', 'nick', 'krish', 'jack'],
        'Age':[20, 21, 19, 18]}

df = pd.DataFrame(data)
 
df
data = {'Name':['Jai', 'Princi', 'Gaurav', 'Anuj'],
        'Age':[27, 24, 22, 32],
        'Address':['Delhi', 'Kanpur', 'Allahabad', 'Kannauj'],
        'Qualification':['Msc', 'MA', 'MCA', 'Phd']}
df = pd.DataFrame(data)
print(df[['Name', 'Qualification']])<jupyter_output>Name Qualification
0     Jai           Msc
1  Princi            MA
2  Gaurav           MCA
3    Anuj           Phd
{'fraction_non_alphanumeric': 0.21019108280254778, 'fraction_numerical': 0.035668789808917196, 'mean_word_length': 3.2486486486486488, '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': '329116', 'license': 'MIT', 'n_tokens_mistral': 333, 'n_tokens_neox': 306, 'n_words': 67, 'path': 'docs/python/pandas/Creating_Dataframes.ipynb', 'repo_name': 'Aavinash1083/mlnotes', 'size': '785'}