Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'DataFrame' object has no attribute 'as_matrix' #60

Open
ft-z opened this issue Mar 29, 2020 · 2 comments
Open

AttributeError: 'DataFrame' object has no attribute 'as_matrix' #60

ft-z opened this issue Mar 29, 2020 · 2 comments

Comments

@ft-z
Copy link

ft-z commented Mar 29, 2020

My problem occurs in File "crowdcount-mcnn-master\src\data_loader.py", line 38, in init
den = pd.read_csv(os.path.join(self.gt_path,os.path.splitext(fname)[0] + '.csv'), sep=',',header=None).as_matrix()

Did anyone solve this problem? :D

@ft-z
Copy link
Author

ft-z commented Mar 29, 2020

Now I found use 'value' instead of 'as_matrix()' is useful. :D

@TerenceChen95
Copy link

To be precisely, use 'dataframe.values' instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants