title: How to convert the two columns to formal columns in Pandas?
body: <p>I am making a project which counts the total number of crimes in each neighbourhood of San Francisco, I have used the following code, but it does not recognize the neighbourhood column as a column when I try to verify it using crime_counts.dtypes</p>
  
  <pre><code>import pandas as pd 
  file_name='https://cocl.us/sanfran_crime_dataset'
  df=pd.read_csv(file_name)
  crime_count = df["PdDistrict"].value_counts().to_frame('C').rename_axis('Neighbourhood')
  crime_count = crime_count.rename(columns = {"PdDistrict":"Neighbourhood"})
  crime_count = crime_count.rename(columns = {"C":"Counts"})
  crime_count
  </code></pre>
  
  <p>I want to create a dataframe, which recognizes both Neighbourhood and Counts as columns. </p>