# import necessary libraries
import pandas as pd

# set n to the desired nth number
n = 10

# read the file, and load every nth row skiprows arg
file_link = 'https://tinyurl.com/BostonHousingcsv'
df = pd.read_csv(file_link, skiprows=lambda x: x % n-1 != 0)

# set column names & move previous column headers as first row
columns = ["crim","zn","indus","chas","nox","rm","age",\
           "dis","rad","tax","ptratio","b","lstat","medv"]
first_row = df.columns
df.columns = columns
df.loc[-1] = first_row
df.index = df.index + 1
df = df.sort_index()

# print the result
print(df.head())