FAMD: TypeError: cannot concatenate object
See original GitHub issueHi!
While trying to fit FAMD
:
famd = prince.FAMD(n_components=2, n_iter=3, copy=True, check_input=True, engine='auto')
famd = famd.fit(df)
Where df
contains the following dtypes:
ip object
app object
channel object
DAY(click_time) int64
YEAR(click_time) int64
MONTH(click_time) int64
WEEKDAY(click_time) int64
users.device object
users.os object
Tje object df
seems to be of the right type: <class ‘pandas.core.frame.DataFrame’> and its columns also, but I get the following error:
TypeError: cannot concatenate object of type “<class ‘scipy.sparse.csr.csr_matrix’>”; only pd.Series, pd.DataFrame, and pd.Panel (deprecated) objs are valid
Does it look like something coming from my side? Or is it a known bug of the libray?
Best,
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
append to dataframe raises Error: cannot concatenate object ...
My script takes a photo from folder number two, and compares it to every photo in folder number one. Each comparison produces a...
Read more >TypeError: cannot concatenate 'str' and 'instancemethod' objects
Hi ! I have a weird issue there. Here's my code : class xml_request(osv.osv): _name = 'xml.request' _columns = { 'config_id': fields.many2one('synconfig', ...
Read more >What does this Python error mean: “Cannot concatenate 'str ...
You are probably trying to concatenate an object that is a string (text) and an object that is an int (number). For example...
Read more >Python String Concatenation | DigitalOcean
The biggest issue with + operator is that we can't add any separator or delimiter between strings. For example, if we have to...
Read more >Query error cannot concatenate 'str' and 'Result' objects
Your error is probably coming from either this code, or something similar: sectorLyr = arcpy.SelectLayerByAttribute_management(lyrCompilVid ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Awesome thank you, it fixed the problem.
Okay I fixed it 😃. It wasn’t much. You can install the latest version which is
0.6.1
and you should be fine. I’ll let you close this issue if everything is working on your side.