<jupyter_start><jupyter_text>https://www.youtube.com/watch?v=XaCSdr7pPmY  When should I use the "inplace" parameter in pandas?<jupyter_code>import pandas as pd
ufo = pd.read_csv('http://bit.ly/uforeports')
ufo.head()
ufo.shape
ufo.drop('City', axis=1).head()      # In drop method, inplace=False is default
ufo.head()       # After droping column "city" also still it coming
ufo.drop('City', axis=1, inplace=True)
ufo.head()
ufo.dropna(how='any').head()
ufo.dropna(how='any').shape
ufo.shape<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16122840690978887, 'fraction_numerical': 0.005758157389635317, 'mean_word_length': 5.6923076923076925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '46377', 'license': 'CNRI-Python', 'n_tokens_mistral': 206, 'n_tokens_neox': 203, 'n_words': 41, 'path': '20_inplace=True/1_Inplace=True_uforeports.ipynb', 'repo_name': 'sureshmecad/Pandas', 'size': '521'}