import pandas as PD


INFO_LINK = 'http://ds.iris.edu/files/earthscope/usarray/_US-MT-StationList.txt'
"""Full URL link to USArray MT site information text file."""


HEADER = 'VNET	NET	STA	SITE DESCRIPTION	LAT	LON	ELEV	START	END	STATUS	INSTALL	CERT'
"""Header line of data file."""


def get_info_map(info_link=INFO_LINK):
    """
    Return a :class:`DataFrame` containing the information provided at
    *info_link*, a link to a tab delineated text file containing
    information for each USArray MT site.
    """
    df = PD.read_table(info_link,
                       sep='\t',
                       skiprows=1,
                       names=['vnet',
                              'net',
                              'sta',
                              'location',
                              'lat',
                              'lon',
                              'elev',
                              'start',
                              'end',
                              'status',
                              'install',
                              'cert'],
                       parse_dates=[7, 8],
                       index_col=2)
    return df

import pandas as PD


INFO_LINK = 'http://ds.iris.edu/files/earthscope/usarray/_US-MT-StationList.txt'
"""Full URL link to USArray MT site information text file."""


HEADER = 'VNET	NET	STA	SITE DESCRIPTION	LAT	LON	ELEV	START	END	STATUS	INSTALL	CERT'
"""Header line of data file."""


def get_info_map(info_link=INFO_LINK):
    """
    Return a :class:`DataFrame` containing the information provided at
    *info_link*, a link to a tab delineated text file containing
    information for each USArray MT site.
    """
    df = PD.read_csv(info_link,
                     sep='\t',
                     skiprows=1,
                     names=['vnet',
                            'net',
                            'sta',
                            'location',
                            'lat',
                            'lon',
                            'elev',
                            'start',
                            'end',
                            'status',
                            'install',
                            'cert'],
                     parse_dates=[7, 8],
                     index_col=2)
    return df

Change of function name due to deprecation.
Change of function name due to deprecation.

  import pandas as PD
  
  
  INFO_LINK = 'http://ds.iris.edu/files/earthscope/usarray/_US-MT-StationList.txt'
  """Full URL link to USArray MT site information text file."""
  
  
  HEADER = 'VNET	NET	STA	SITE DESCRIPTION	LAT	LON	ELEV	START	END	STATUS	INSTALL	CERT'
  """Header line of data file."""
  
  
  def get_info_map(info_link=INFO_LINK):
      """
      Return a :class:`DataFrame` containing the information provided at
      *info_link*, a link to a tab delineated text file containing
      information for each USArray MT site.
      """
-     df = PD.read_table(info_link,
+     df = PD.read_csv(info_link,
-                        sep='\t',
+                      sep='\t',
-                        skiprows=1,
+                      skiprows=1,
-                        names=['vnet',
+                      names=['vnet',
-                               'net',
+                             'net',
-                               'sta',
+                             'sta',
-                               'location',
+                             'location',
-                               'lat',
+                             'lat',
-                               'lon',
+                             'lon',
-                               'elev',
+                             'elev',
-                               'start',
+                             'start',
-                               'end',
+                             'end',
-                               'status',
+                             'status',
-                               'install',
+                             'install',
-                               'cert'],
+                             'cert'],
-                        parse_dates=[7, 8],
+                      parse_dates=[7, 8],
-                        index_col=2)
+                      index_col=2)
      return df
  
Change of function name due to deprecation.
## Code Before:
import pandas as PD


INFO_LINK = 'http://ds.iris.edu/files/earthscope/usarray/_US-MT-StationList.txt'
"""Full URL link to USArray MT site information text file."""


HEADER = 'VNET	NET	STA	SITE DESCRIPTION	LAT	LON	ELEV	START	END	STATUS	INSTALL	CERT'
"""Header line of data file."""


def get_info_map(info_link=INFO_LINK):
    """
    Return a :class:`DataFrame` containing the information provided at
    *info_link*, a link to a tab delineated text file containing
    information for each USArray MT site.
    """
    df = PD.read_table(info_link,
                       sep='\t',
                       skiprows=1,
                       names=['vnet',
                              'net',
                              'sta',
                              'location',
                              'lat',
                              'lon',
                              'elev',
                              'start',
                              'end',
                              'status',
                              'install',
                              'cert'],
                       parse_dates=[7, 8],
                       index_col=2)
    return df

## Instruction:
Change of function name due to deprecation.
## Code After:
import pandas as PD


INFO_LINK = 'http://ds.iris.edu/files/earthscope/usarray/_US-MT-StationList.txt'
"""Full URL link to USArray MT site information text file."""


HEADER = 'VNET	NET	STA	SITE DESCRIPTION	LAT	LON	ELEV	START	END	STATUS	INSTALL	CERT'
"""Header line of data file."""


def get_info_map(info_link=INFO_LINK):
    """
    Return a :class:`DataFrame` containing the information provided at
    *info_link*, a link to a tab delineated text file containing
    information for each USArray MT site.
    """
    df = PD.read_csv(info_link,
                     sep='\t',
                     skiprows=1,
                     names=['vnet',
                            'net',
                            'sta',
                            'location',
                            'lat',
                            'lon',
                            'elev',
                            'start',
                            'end',
                            'status',
                            'install',
                            'cert'],
                     parse_dates=[7, 8],
                     index_col=2)
    return df
