<jupyter_start><jupyter_text><jupyter_code># importing pandas module
import pandas as pd

# reading csv file from url
data = pd.read_csv("https://media.geeksforgeeks.org/wp-content/uploads/nba.csv")

# dropping null value columns to avoid errors
data.dropna(inplace = True)

# substring to be searched
sub ='a'

# creating and passing series to new column
data["Indexes"]= data["Name"].str.contains(sub)

# display
data<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11581291759465479, 'fraction_numerical': 0.0, 'mean_word_length': 5.818181818181818, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '189124', 'license': 'MIT', 'n_tokens_mistral': 157, 'n_tokens_neox': 150, 'n_words': 41, 'path': 'pandas/pandas_contain.ipynb', 'repo_name': 'hihunjin/Code-snippet-for-everything', 'size': '449'}