KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Basic question on a pandas dataframe. I have a 1x1 dataframe with a datapoint and there are no column headers (currently). df[0,0] does not work because I think it is expecting a column name. In addition, df.0 doesn't work nor df[0,''] . df.ix[0,0] does work. In general, am I required to have a column name? Is it a best practice to use column names with pandas dataframes? If my sql query does not have column headers, is it best to add them at that point? Thanks for the help.
Tags (comma-separated)
Save Edits
Cancel