How do I extract a list of distinct dates from a table?
I have a table with a date column that contains many repeated dates. How can I get a list of the unique dates?
Use select_distinct to get the unique dates, then convert the result to a Python list, NumPy array, or Pandas DataFrame:
Convert to NumPy array
Use deephaven.numpy.to_numpy to convert to a NumPy array:
Convert to Pandas DataFrame
Use deephaven.pandas.to_pandas to convert to a Pandas DataFrame:
This approach works for any column type, not just dates. Use select_distinct to get unique values, then choose the conversion method that best fits your use case.
Note
These FAQ pages contain answers to questions about Deephaven Community Core that our users have asked in our Community Slack. If you have a question that is not in our documentation, join our Community and we'll be happy to help!