title: Pass in a string from txt file into pd.read.csv
body: <p>I have a txt file of strings consisting of 2 rows 1 column in which I want to pass in the first row string into pd.read.csv</p>
  <pre><code>import pandas as pd
  data = pd.read_csv('datainput.txt',  header=None)
  data.columns = [&quot;a&quot;]
  print(data.iloc[0])
  
  df = pd.read_excel(data.iloc[0].astype('string'))
  outT = data.iloc[1].astype('string')
  </code></pre>
  <p>.astype('string') does not work</p>
  <p>Error:</p>
  <pre><code> a  test.xlsx
   Invalid file path or buffer object type: &lt;class 'pandas.core.series.Series'&gt;
  </code></pre>
  <p>Desired Output</p>
  <pre><code>Simply pass in a string into pd.read.csv
  </code></pre>