I know that I can load the datasets in the pandas using the read_csv
function of pandas as below
import pandas as pd
df = read_csv('/home/user/iris_dataset.csv', header=0)
df.head()
How can I load the same dataset using the command line arguments while executing the code ? I want to load the dataset to a data frame like python3 example.py -D 'iris_dataset.csv'
while executing the code