Skip to content

Commit

Permalink
Update hopkins.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lachhebo authored Dec 17, 2024
1 parent c8638e2 commit 6bc8020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyclustertend/hopkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def hopkins(data_frame: Union[np.ndarray, pd.DataFrame], sampling_size: int) ->
0.16
"""

if type(data_frame) == np.ndarray:
if isinstance(data_frame, np.ndarray):
data_frame = pd.DataFrame(data_frame)

data_frame_sample = sample_observation_from_dataset(data_frame, sampling_size)
Expand Down

0 comments on commit 6bc8020

Please sign in to comment.