I imported a table from a SQL database into a dataframe, and now I'm trying to get statistics about the dataframe via describe()
. I also tried head()
. Both return an error "ERROR: UndefVarError: describe not defined"
.
I've added and imported the DataFrames
package to resolve the issue, which didn't work.
This is how I imported the dataframe:
using Pkg
Pkg.add("ODBC")
Pkg.add("DataFrames")
using ODBC, DataFrames
db = ODBC.DSN(connection_string)
query = ODBC.query(db, "SELECT * FROM table")
df = DataFrame(query)
describe(df)
I am expecting a result similar to the describe()
or head()
Python functions. I would expect columns labels and the first few rows after running head(df)
. I would expect min, max, avg, count, etc for each of the column labels after running describe(df)
.
Pandas.jl
or any other package that providesdescribe
orhead
? In this case, you need to use fully-qualified namesDataFrames.describe
andDataFrames.head
. This is not necessary in other situations. – hckr