Are histograms implemented in the pandas backend? #4769
-
Hi, I am trying to calculate a column histogram like;
but I get I tried with some param combinations without success. Any help? |
Beta Was this translation helpful? Give feedback.
Answered by
ogrisel
Nov 10, 2022
Replies: 1 comment
-
I think the error is pretty explicit: this feature does not exist for this backend (yet). If you use a recent enough version of ibis, you can use the duckdb backend on your Pandas dataframe via the import ibis
import pandas as pd
table = ibis.memtable(pd.DataFrame({"a": range(100)}))
table["a"].histogram(nbins=10).execute() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cpcloud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the error is pretty explicit: this feature does not exist for this backend (yet).
If you use a recent enough version of ibis, you can use the duckdb backend on your Pandas dataframe via the
ibis.memtable
function: