You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param samples: The samples to plot (default is all samples)
:type samples: list
:param cumulative: A flag to specify whether the freqs are cumulative (default = False)
:type title: bool
Here's an example of samples being ignored:
fromnltkimportFreqDistfd=FreqDist(["foo", "bar"])
# I expect to get just "foo", but get "foo" *and* "bar".fd.tabulate(samples=["foo"])
This is different from what ConditionalFreqDist.tabulate() does, so I'm not sure what's intended here. Either way, it would be nice for the docstring to be clearer.
The text was updated successfully, but these errors were encountered:
It looks like the
samples
keyword argument mentioned in the docstring ofFreqDist.tabulate()
is ignored. Is this the intended behavior?Here are the arguments from the docstring:
Here's an example of
samples
being ignored:This is different from what
ConditionalFreqDist.tabulate()
does, so I'm not sure what's intended here. Either way, it would be nice for the docstring to be clearer.The text was updated successfully, but these errors were encountered: