Assuming that 6th column name is Name File, and considering the file is in the path csv = '/home/User/Documents/file.csv' or csv = 'file.csv', one can do that using the os.path module.
import os.path
df['Name File'] = os.path.basename(csv)
One might also do, as @tdy suggests. Assign the name of the file to a variable
filename='chr1.step1.csv';
Then, assuming the df already exists (else one needs to read it, with something like df=pd.read_csv(filename,sep='\t',header=None)), assign the file name to the cells in a new column
df['Name File'] = filename
Extra: If one has a directory with lots of csv files
import pandas as pd
import glob
import os.path
# Create a list of all CSV files
files = glob.glob("*.csv")
# Create an empty list to append the df
filenames = []
for csv in files:
df = pd.read_csv(csv)
df['Name File'] = os.path.basename(csv)
filenames.append(df)
df[6] = "chr1.step1.csv"?filename='chr1.step1.csv'; df=pd.read_csv(filename,sep='\t',header=None); df[6]=filename? i think that's basically all you can do