How to read a csv file as series instead of dataframe in pandas?
There is 2 option read series from csv file;

pd.Series.from_csv('File_name.csv')
pd.read_csv('File_name.csv', squeeze=True) 

My prefer is; using squeeze=True with read_csv
When I try to use  x = pandas.Series.from_csv('File_name.csv', header = None) 
It throws an error saying IndexError: single positional indexer is out-of-bounds.
However, If I read it as dataframe and then extract series, it works fine.
x = pandas.read_csv('File_name.csv', header = None)[0]
What could be wrong with first method?