0

If I ftp into a database and use pandas.read_sql to read in a huge file, what data type would the variable set equal to this be? And, if applicable, what kind of format would it be in? What object type is a pandas data frame?

2 Answers 2

1

Variable = ?

The variable set would be equal to a pandas.core.frame.DataFrame object.

Format?

The pandas.core.frame.DataFrame format is a collection of numpy ndarrays, dicts, series, arrays or list-like structures that make up a 2 dimensional (typically) tabular data structure.

Pandas Object Type?

A pandas.core.frame.DataFrame object is an organized collection of list like structures containing multiple data types.

Sign up to request clarification or add additional context in comments.

Comments

0

The function pandas.read_sql returns a DataFrame.

The type of a DataFrame in pandas is pandas.core.frame.DataFrame.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.