<jupyter_start><jupyter_text>Series and DataFrames<jupyter_code>import pandas as pd
import os

cwd = os.getcwd()  # Get the current working directory (cwd)
files = os.listdir(cwd)  # Get all the files in that directory
print("Files in %r: %s" % (cwd, files))
oo = pd.read_csv('olympics.csv',skiprows=4)
oo.head()<jupyter_output><empty_output><jupyter_text>List our Olympics DataFrame.<jupyter_code>oo<jupyter_output><empty_output><jupyter_text>List only the NOC column using both the ['..'] and dot notation. What type is this object?<jupyter_code>oo['NOC']
oo.NOC
type(oo.NOC)<jupyter_output><empty_output><jupyter_text>List the Edition, City, Athlete Name and Medal columns. What type is this object?<jupyter_code>type(oo[['Edition','City','Athlete','Medal']])
#This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license in the LICENSE.txt file in the root directory
#of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#Program executed by Bhadale IT (https://www.bhadaleit.com).<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1233644859813084, 'fraction_numerical': 0.004672897196261682, 'mean_word_length': 6.386206896551724, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '645637', 'license': 'Apache-2.0', 'n_tokens_mistral': 379, 'n_tokens_neox': 372, 'n_words': 106, 'path': 'Series and Dataframes.ipynb', 'repo_name': 'vijaymohire/python', 'size': '1070'}