import pandas as pd
data_frame = pd.read_csv('C:/users/raju/sample1.csv', nrows=101)
data_frame.to_csv('C:/users/raju/sample.csv')
way to generate a specified number dataframe of new csv file from existing csv file in python using pandas