cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Strange object returned using sparklyr

Jeff1
Contributor II

Community

I'm running a sparklyr "group_by" function and the function returns the following info:

# group by event_type

acled_grp_tbl <- acled_tbl %>%

 group_by("event_type") %>%

 summary(count = n())

                  Length Class      Mode      

src                 1     src_spark  list      

ops                4     op_group_by list      

sdf_cache_state    2     -none-     environment

spark_dataframe   1     -none-     function  

schema_cache_state 2     -none-     environment

schema             1     -none-     function

Not what I expected and have no idea what it is telling me. Other than my group_by isn't working. Any ideas.

Jeff

1 ACCEPTED SOLUTION

Accepted Solutions

Jeff1
Contributor II

I should have deleted the post. While your are correct "event_type" should be without quotes the problem was the Summary function. I was using the wrong function it should have been "summarize."

View solution in original post

3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

I think "event_type" should be without quotation marks

Jeff1
Contributor II

I should have deleted the post. While your are correct "event_type" should be without quotes the problem was the Summary function. I was using the wrong function it should have been "summarize."

Hubert-Dudek
Esteemed Contributor III

yes I haven't spotted that as names are similar 🙂

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!