Getting ValueError from lyr.replaceDataSource(), Running Python script in Task Scheduler-- Script will not run, How to choose voltage value of capacitors, Ackermann Function without Recursion or Stack, Torsion-free virtually free-by-cyclic groups. The best answers are voted up and rise to the top, Not the answer you're looking for? Why not use KMeans from MLJ or directly from the Clustering package (which MLJ will call anyways) ? The problem is that when I try to do this. TypeError: NoneType object has no attribute append In Python, it is a convention that methods that change sequences return None. And it is also an excuse to see how PyCall behaves. If a law is new but its interpretation is vague, can the courts directly ask the drafters the intent and official interpretation of their law? I may double check just to be sure, but I've already used this data in Python and I never had to deal with empty values. AttributeError: 'unicode' object has no attribute '_arc_object' from arcpy.mapping.ListLayers? So, you need to Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Does With(NoLock) help with query performance? WebHow to Fix? Thanks for contributing an answer to Stack Overflow! SET coauthor.collaborations=collaborations; 542), How Intuit democratizes AI development across teams through reusability, We've added a "Necessary cookies only" option to the cookie consent popup. Well occasionally send you account related emails. AttributeError: 'NoneType' object has no attribute 'split' Exporting the Properties to variables.. Webnorthern cricket league professionals; breaux bridge jail inmates; virtualbox ubuntu failed to start snap daemon; len and brenda credlin What does a search warrant actually look like? The KMeans code was working before but now it's not. So, you need to check the attribute is not Null before splitting. In that case you should use the 8.991 version there is nothing you can do. Here are the lines 61 and 304 When I use SMOTE for multi-label, it is fine, but when I use the same function on a binary dataset it fails with the following error: Does anyone know why this error keeps popping up? WebKivy Buildozer AttributeError: 'Context' object has no attribute 'hostpython' apk python3/kivy app buildozer File "D:\1.DEV\FlatCAM_beta\camlib.py", line 3965, in generate_from_geometry_2 Something like, Powered by Discourse, best viewed with JavaScript enabled, AttributeError: 'NoneType' object has no attribute 'split'. Post the output of, KMeans Attribute Error: 'NoneType' object has no attribute 'split', The open-source game engine youve been waiting for: Godot (Ep. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. How to properly visualize the change of variance of a bivariate Gaussian distribution cut sliced along a fixed variable? Find centralized, trusted content and collaborate around the technologies you use most. Is it ethical to cite a paper without fully understanding the math/methods, if the math is not relevant to why I am citing it? Why are non-Western countries siding with China in the UN? By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. Even if we call an external API which returns different data, using the hasattr () method, we can check if the object has an attribute with the given name. The AttributeError: NoneType object has no attribute get occurs when you try to call the get () method on the None type. Solution 1 Call the get () method on valid dictionary Solution 2 Check if the object is Something like.. @Rahul Kumar and your point is? 542), How Intuit democratizes AI development across teams through reusability, We've added a "Necessary cookies only" option to the cookie consent popup. This doesn't appear to be an arcpy issue -- the entire stack is within the. It only takes a minute to sign up. Did the residents of Aneyoshi survive the 2011 tsunami thanks to the warnings of a stone marker? Was Galileo expecting to see so many stars? I'm trying to use PyCall.jl to run some Python's sklearn functions. What factors changed the Ukrainians' belief in the possibility of a full-scale invasion between Dec 2021 and Feb 2022? Required fields are marked *. I found this thread, downgraded numpy to pip install numpy==1.21.4 and the issue was resolved. Note that the first two lines work properly with no errors, the problem should be in the fit() function. Here is a screenshot of the error I am getting. File "/test/wls/wls_domain_creation.py", line 61, in export_properties. I assume that #22689 (comment) solved it. Julia is a high-level, high-performance dynamic programming language for technical computing, with syntax that is familiar to users of other technical computing environments. The number of distinct words in a sentence. WITH a1, a2, paper Hopefully someone can point it out. AttributeError: 'NoneType' object has no attribute 'split'. Downgrading numpy to 1.21.4 made it work again. sklearn KMeans is not working as I only get 'NoneType' object has no attribute 'split' on nonEmpty Array, The open-source game engine youve been waiting for: Godot (Ep. But this error occurs when it's in a. I just had the same issue while re-running code that used to work a few months ago. Any idea on how to make this work? By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising. Same problem with the official KMeans example and threadpoolctl==3.1.0 and scikit-learn 1.1.2. Error "unsupported operand type(s) for +: 'int' and 'NoneType' for variance in python. By clicking Sign up for GitHub, you agree to our terms of service and The text was updated successfully, but these errors were encountered: Looks like an issue with threapoolctl and not scikit-learn. Also, I don't remember why I had to install scikit-image (again?). Connect and share knowledge within a single location that is structured and easy to search. Error: " 'dict' object has no attribute 'iteritems' ", ValueError: Unknown label type: 'unknown', Keras AttributeError: 'list' object has no attribute 'ndim', AttributeError: 'NoneType' object has no attribute 'lower' python using spacy, Hough Circle detction AttributeError: 'NoneType' object has no attribute 'rint', AttributeError: 'list' object has no attribute 'shape' while converting to array, PrefetchDataset' object has no attribute 'ndim'. Something like.. WebAttributeError occurs in a Python program when we try to access an attribute (method or property) that does not exist for a particular object. Powered by Discourse, best viewed with JavaScript enabled, 'NoneType' Python object has no attribute 'split'. You can avoid fighting with PyCall and gain good speed simultaneously. Economy picking exercise that uses two consecutive upstrokes on the same string. Does Cast a Spell make you a spellcaster? Press J to jump to the feed. Making statements based on opinion; back them up with references or personal experience. Not the answer you're looking for? Is it the same build of Python? If dark matter was created in the early universe and its formation released energy, is there any evidence of that energy in the cmb? So, you need to Sign in Already on GitHub? python NoneType object has no attribute xxxx tryexcept Well occasionally send you account related emails. See shell. Well, I'm taking a ML course using Python. threadpoolctl on 3.1 did not solve my problem. Versions 8.993 and 8.994 will be also with new features. Resolved: How to represent dependency injection with generics in UML class diagram? Press question mark to learn the rest of the keyboard shortcuts. This issue has been solved a while back. WebKivy Buildozer AttributeError: 'Context' object has no attribute 'hostpython' apk python3/kivy app buildozer kivy.org, 2 . Those features were not easy to add but here we are and FlatCAM is what it is. How to handle multi-collinearity when all the variables are highly correlated? Pandas: How to extract the regression coefficient from statsmodels.api? Describe the bug I am oversampling using SMOTE on a binary classification dataset (churn or not). Webfixed attributeerror: 'int' object has no attribute 'split'thanks for watching! Have a question about this project? By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. The error AttributeError: 'NoneType' object has no attribute 'split' often indicates that the attribute you are trying to split is Null, meaning there is no value in it to split. You need to check the attribute is not Null before splitting. AttributeError occurs when you access an undefined attribute on an object. The AttributeError: NoneType object has no attribute split happens when the value of None the split () attribute cannot be called. To fix this error from affecting the whole program, you should check for the occurrence of None in your variables. Hello all, I have this query for the author/coauthor data: KMeans is from sklearn.cluster, seems like fixed an issue by importing a specific version of numpy. In real-world data for classification etc, There is no guarantee for the balance target variable. WebNoneTypesplitsplitNone Wiki; ; ; python I'm running a simple python script from arcmap that sends an html post and processes the response. The AttributeError is an exception thrown when an object does not have the attribute you tried to access. some server function is trying to use .split() on an empty object. File "D:\1.DEV\FlatCAM_beta\FlatCAMApp.py", line 2803, in new_object AttributeError: 'NoneType' object has no attribute 'split' often indicates that the attribute you are trying to split is Null, meaning there is no value in it to split. WITH a1, a2, collect(paper)[0].year as year, count(*) as collaborations Have a question about this project? If dark matter was created in the early universe and its formation released energy, is there any evidence of that energy in the cmb? python -m threadpoolctl -i numpy I get this error: AttributeError("'NoneType' object has no attribute 'split'"). Does Cast a Spell make you a spellcaster? :). I then updated threadpoolctl to 3.1.0 and now it works: You signed in with another tab or window. Feel free to reopen if you consider the issue not fixed. What factors changed the Ukrainians' belief in the possibility of a full-scale invasion between Dec 2021 and Feb 2022? NoneType object has no attribute split often indicates that the attribute you are trying to split is Null, meaning there is no value in it to split. models.py calls host = host.encode('idna').decode('utf-8') and I placed a msg at that point displaying the url being passed which is correct. Resolved: Querying nodes using array property neo4j. JHK October 27, 2021, 2:09pm #1. I then placed a msg in idna.py at the beginning of the encode() function to print the url being received there but that msg is never hit. This should be the accepted solution: Downgrading numpy didn't work for me. keys() PythonAttributeError: 'list' object has no attribute 'keys' keys() . Sign in The change I made was "pip install scikit-image" which I think changed numpy 1.18.5 to numpy 1.22.3 . Is email scraping still a thing for spammers. thanks again and good job! This worked for me as well. so what is the best stable version? Tags: You can post a Dropbox/Mega/Google Drive link or you can upload to https://filedropper.com and post the link here. I am currently using threadpoolctl version 3.1.0 and I still get the same error above when using SMOTE. Resolved: No4j create different edge based on property. Connect and share knowledge within a single location that is structured and easy to search. honeybee-legacy. How can the mass of an unstable composite particle become complex? will be the same length as indices """ def __init__ (self, dataset, indices,labels): self.dataset = dataset self.indices = indices labels_hold = torch.ones (len (dataset)).type AttributeError: 'NoneType' object has no attribute 'split'. Resolved: Is there a way to prevent try_from from consuming a mutable reference? WebThe part NoneType object has no attribute append tells us that the NoneType object does not have the attribute append(). 8.992? When I use SMOTE for multi-label, it is fine, but when I use the hello, no, it was not the proble, with the 991 solved the z depth issue, but it crashes when try to add the alignment drills for double side pcb. I have a Julia's DataFrame called df which I was able to scale using Python's StandardScaler, like this: I had to convert df into a Matrix first, but other than that, no problem. WebI get this error: AttributeError("'NoneType' object has no attribute 'split'"). And the way schemes are handled is confusing. The code where this error occurred should check for Python None and act accordingly. 'NoneType' object has no attribute 'split'. Browse other questions tagged, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Why is there a memory leak in this C++ program and how to solve it, given the constraints? By clicking Sign up for GitHub, you agree to our terms of service and AttributeError Traceback (most recent call last) in 12 for k in K: 13 kmeanModel = KMeans (n_clusters=k, random_state=0) ---> 14 kmeanModel.fit Python: Remove all line breaks from a long string of text, Python: Get the class name of a decorated class method, Building a tree in python with tuple in Python, Django: How to make json data readable in django in Python, listing all the values inside a matrix into a 1 whole list in List. I put a lot of time lately (since January) in FlatCAM. ok, the 991 crashes when i add the alignement drill coordinates. Are there conventions to indicate a new item in a list? I think that 8.992 may have a problem there. keys() PythonAttributeError: 'list' object has no attribute 'keys' I am creating a new doctype under the HR module, when I save the doctype, I get this error. AttributeError: NoneType object has no attribute split, The AttributeError is an exception thrown when an object does not have the attribute you tried to access. now, in this video i can see the guy with the 913 version, ill try with it and hope it works for my case, https://www.youtube.com/watch?v=9xczeQMj2dg. well, i had this roblem, but now it seems to be solved. I posted a solution that works with all versions of numpy. Skip to content we will stick to one such error, i.e., AttributeError: Nonetype object has no Attribute Group. python -c "from sklearn import show_versions; show_versions()" Resolved: sklearn KMeans is not working as I only get NoneType object has no attribute split on nonEmpty Array, Resolved: is it possible to install canvas with M1 chip. You signed in with another tab or window. sklearn kmean predict NoneType object has no attribute split sklearn summer2077 2022-09-01 22:04:21 1387 11 bug sklearn bug 1 0 pip install threadpoolctl==3.1.0 1 How to react to a students panic attack in an oral exam? Apparently, Upgrading threadpoolctl alone did not work for me. That is fixed in my working copy. One of the usual fixes is to delete the preferences files and try again. and allLocations.dtype gives dtype('float64'). Hi all, I got some problem with the daylight simulation component. maybe i should use a z-probe to let it set its height automatically? Thank you all. Dealing with hard questions during a software developer interview. Your email address will not be published. Is there anyway to tell which module is incompatible with the KMeans code I'm using? Easiest way to remove 3/16" drive rivets from a lower screen door hinge? AssertionError: Invalid MXD filename from arcpy.mapping.MapDocument()? Create an account to follow your favorite communities and start taking part in conversations. How do I check if an object has an attribute? That's an issue with threadpoolctl 2.1.0. I first updated scikit-learn to 1.1.3 and it didn't work. It might have had something to do with a macOS upgrade from Sierra to Catalina, but I found that it was having an issue calculating kMeans when n_clusters = 1. query=''' Hi, There is no need to use PyCall for this model. LE: Can you post the Gerber file and the steps to reproduce the issue? I agree completely, but the fact remains that it works run alone but not when run within arcmap. Find centralized, trusted content and collaborate around the technologies you use most. So, you need to check the attribute is not Null before splitting. I figured that the problem is the conversion of data, but I have no idea how to deal with this. Solution exception:'NoneType' object has no attribute 'split' grasshopper. Problem invoking WLST - Traceback (innermost last): File "/test/wls_domain_creation.py", line 304, in ? Applications of super-mathematics to non-super mathematics. MATCH (a1)<-[:AUTHOR]-(paper)-[:AUTHOR]->(a2:Author) This can cause problems with other libraries if you're not working within a venv. Resolved: sklearn KMeans is not working as I only get NoneType object has no attribute split on nonEmpty Array By Isaac 10 months Ago 4 Min Read Question: I To learn more, see our tips on writing great answers. For future reference: Do EMC test houses typically accept copper foil in EUT? I started getting the same error recently. Launching the CI/CD and R Collectives and community editing features for How do I check if an object has an attribute? Upgrade threadpoolctl to version >3. This works for all versions of numpy . It should not be the case, but you could try. . And this didn't fix the issue. So, you need to check the attribute is not Null before splitting. Here is the full code with output- Smote object has no attribute fit_sample solution What Smote actually do? kMeans is not working anymore with numpy 1.22.2 Probably similiar to ( #22683) but not sure if it is the same fix Steps/Code to Reproduce allLocations = np.array Your email address will not be published. to your account, kMeans is not working anymore with numpy 1.22.2 Also, even if this is unnecessary, I think that understanding what this error is can be useful. Webclass sklearn.cluster.KMeans(n_clusters=8, *, init='k-means++', n_init=10, max_iter=300, tol=0.0001, verbose=0, random_state=None, copy_x=True, algorithm='lloyd') [source] K-Means clustering. Any ideas why? Has anyone encountered this problem yet or knows how I can fix it? daylight, honeybee. We will understand it and then find solution for it. Why is arcpy.da.SearchCursor code giving AttributeError: 'int' object has no attribute 'split'? Is lock-free synchronization always superior to synchronization using locks? Thanks for contributing an answer to Geographic Information Systems Stack Exchange! solved the prb for me. Pyinstaller numpy "Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll". Why are non-Western countries siding with China in the UN? Fixed the problem. It might have had something to do with a macOS upgrade from Sierra to Catalina, but I found that it was having an issue calculating kMeans when n_clusters = 1. So I think the data is set up OK. I am running: threadpoolctl 3.1.0 pypi_0 pypi, So this is not an issue with threadpoolctl 2.1, I opened a similar issue a few days ago: #22683, @raymondj-pace it's not the same issue. AttributeError: NoneType object has no attribute xpath mark You need to check the attribute is not Null before splitting. Web'NoneType' object has no attribute 'split' often indicates that the attribute you are trying to split is Null, meaning there is no value in it to split. Stepping through a debugger everything looks fine, just not arcmap, AttributeError: 'NoneType' object has no attribute 'split' from arcmap only, The open-source game engine youve been waiting for: Godot (Ep. How to fix AttributeError: NoneType object has no attribute get? When I changed it, it worked right away. Do German ministers decide themselves how to vote in EU decisions or do they have to follow a government line? Fit ( ) R Collectives and community editing features for how do I check if object! On an object has no attribute 'split ' grasshopper tells us that the object...: //filedropper.com and post the link here good speed simultaneously case you should check the! The occurrence of None the split ( ) -i numpy I get this error occurred should for. Policy and cookie policy not be the accepted solution: Downgrading numpy did n't work a. Foil in EUT should check for the balance target variable in with another tab or window I assume that 22689! The fit ( ) PythonAttributeError: 'list ' object has no attribute 'split ' grasshopper contributing... Cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform Aneyoshi survive the tsunami! What SMOTE actually do jhk October 27, 2021, 2:09pm # 1 when run arcmap... Smote actually do issue and contact its maintainers and the steps to the! ; Python I 'm taking a ML course using Python object has attribute... Not be the case, but you could try, there is nothing you can post a Drive... Reference: do EMC test houses typically accept copper foil in EUT technologies you use most 'm running a Python. 'Re looking for variables are highly correlated I found this thread, numpy... Lower screen door hinge answer you 're looking for contact its maintainers and the to... The accepted solution: Downgrading numpy did n't work ' '' ) can! `` unsupported operand type ( s ) for +: 'int ' object has no 'split... Dealing with hard questions during a software developer interview you post the Gerber file and the steps to the! No4J create different edge based on opinion ; back them up with references or experience! Same error above when using SMOTE on a binary classification dataset ( churn or not ) code. Versions 8.993 and 8.994 will be also with new features not when run within.. Nothing you can do agree to our terms of service, privacy policy and cookie policy a government?! Licensed under CC BY-SA viewed with JavaScript enabled, 'NoneType ' Python object has attribute! To be an arcpy issue -- the entire Stack is within the assertionerror: Invalid MXD from... Changed numpy 1.18.5 to numpy 1.22.3 change of variance of a full-scale invasion between Dec 2021 and Feb 2022 )! Dropbox/Mega/Google Drive link or you can upload to https: //filedropper.com and post Gerber. On property `` unsupported operand type ( s ) for +: 'int ' object has no attribute '! Object does not have the attribute is not Null kmeans attributeerror: 'nonetype' object has no attribute 'split' splitting -m threadpoolctl -i numpy I this! Mutable reference taking part in conversations I posted a solution that works with all of. An exception thrown when an object has no attribute 'split'thanks for watching 'm running a simple script. It did n't work ; Python I 'm running a simple Python script from that... Of an unstable composite particle become complex ( innermost last ): file `` /test/wls_domain_creation.py '', line 61 in... ' for variance in Python, it is a screenshot of the shortcuts. An attribute to the top, not the answer you 're looking for Information Systems Stack Exchange two! Is what it is not kmeans attributeerror: 'nonetype' object has no attribute 'split' Traceback ( innermost last ): file `` /test/wls_domain_creation.py,... Program and how to vote in EU decisions or do they have to follow a government?. Picking exercise that uses two consecutive upstrokes on the same error above when using SMOTE data is set ok... And the steps to reproduce the issue was resolved looking for FATAL error AttributeError... Scikit-Learn 1.1.2 we will stick to one such error, i.e., AttributeError: 'Context object! All versions of numpy Site design / logo 2023 Stack Exchange Inc ; user licensed... Server function is trying to use PyCall.jl to run some Python 's sklearn functions are and FlatCAM is what is! In EUT that # 22689 ( comment ) solved it from the Clustering package ( which MLJ will call )! Reddit may still use certain cookies to ensure the proper functionality of our.. Get occurs when you access an undefined attribute on an empty object for the balance variable. Since January ) in FlatCAM Inc ; user contributions licensed under CC BY-SA to one error. Did n't work anyways ) sliced along a fixed variable the possibility of a stone marker problem should be the... And try again gain good speed simultaneously GitHub account to follow a line. Feb 2022 Python None and act accordingly remove 3/16 '' Drive rivets a. Is that when I changed it, given the constraints 'm using when using.... Attribute 'hostpython ' apk python3/kivy app Buildozer kivy.org, 2 lower screen door hinge our platform see how PyCall.. ( s ) for +: 'int ' and 'NoneType ' object has no attribute '_arc_object ' arcpy.mapping.ListLayers... Operand type ( s ) for +: 'int ' object has no attribute '. The response typeerror: NoneType object has no attribute Group a mutable reference, 2021, 2:09pm 1! Updated scikit-learn to 1.1.3 and it did n't work is an exception thrown when object! Share knowledge within a single location that is structured and easy to search drill coordinates us that first! 8.991 version there is nothing you can post a Dropbox/Mega/Google Drive link or you can post Dropbox/Mega/Google! Back them up with references or personal experience the first two lines work properly no... With output- SMOTE object has no attribute append ( ) PythonAttributeError: 'list ' has! And contact its maintainers and the steps to reproduce the issue JavaScript,! ) function let it set its height automatically numpy 1.18.5 to numpy 1.22.3 one the. With output- SMOTE object has an attribute the attribute is kmeans attributeerror: 'nonetype' object has no attribute 'split' Null before splitting I updated... Cookie policy but the fact remains that it works run alone but not when run within arcmap not to... The value of None the split ( ) function for a free GitHub to... Class diagram copper foil in EUT am currently using threadpoolctl version 3.1.0 now!, best viewed with JavaScript enabled, 'NoneType ' Python object has no attribute 'split ' grasshopper changed... The kmeans attributeerror: 'nonetype' object has no attribute 'split' in that case you should use the 8.991 version there is no guarantee for the balance variable... Will stick to one such error, i.e., AttributeError: 'Context ' object has attribute... Accepted solution: Downgrading numpy did n't work for me us that the problem is the code! Of time lately ( since January ) in FlatCAM good speed simultaneously based! Signed in with another tab or window not ) to vote in EU decisions or they... Of service, privacy policy and cookie policy good speed simultaneously is synchronization... The accepted solution: Downgrading numpy did n't work and cookie policy work! Was working before but now it 's not I found this thread downgraded! Of variance of a full-scale invasion between Dec 2021 and Feb 2022 another tab window!, a2, paper Hopefully someone can point it out excuse to see how PyCall.... Are there conventions to indicate a new item in a list I assume that # 22689 ( comment solved! Need to check the attribute is not Null before splitting remember why had! Access an undefined attribute on an object does not have the attribute is not Null splitting... 3/16 '' Drive rivets from a lower screen door hinge 'list ' has. Prevent try_from from consuming a mutable reference the value of None in your variables powered by Discourse, viewed! Processes the response had this roblem, but now it works: you signed in with another tab or.... From the Clustering package ( which MLJ will call anyways ) can you post the link.! To run some Python 's sklearn functions future reference: do EMC test houses typically accept copper foil EUT! To delete the preferences files and try again NoneType object has no attribute 'split ' '' ) see PyCall... Mlj will call anyways ) you consider the issue part in conversations rise to the of... Is lock-free synchronization always superior to synchronization using locks to delete the preferences files and try.! Have no idea how to vote in EU decisions or do they have to follow your favorite communities start! Foil in EUT the change of variance of a full-scale invasion between Dec and... Is to delete the preferences files and try again a software developer interview to! Is what it is also an excuse to see how PyCall behaves in C++! Copper foil in EUT fit_sample solution what SMOTE actually do tryexcept well occasionally you... Use the 8.991 version there is nothing you can post a Dropbox/Mega/Google Drive link or can. In your variables does n't appear to be an arcpy issue -- the Stack... Be the case, but you could try to access, privacy policy and cookie policy also I. Solution exception: 'NoneType ' object has no attribute xxxx tryexcept well send!, 'NoneType ' Python object has no attribute 'split ' grasshopper best viewed with JavaScript enabled, '! Find solution for it solved it no idea how to vote in EU kmeans attributeerror: 'nonetype' object has no attribute 'split' do. Dealing with hard questions during a software developer interview well, I got some problem with official! You try to call the get ( ) knows how I can fix it to synchronization locks. Invasion between Dec 2021 and Feb 2022 threadpoolctl==3.1.0 and scikit-learn 1.1.2 have the attribute is not before...
kmeans attributeerror: 'nonetype' object has no attribute 'split'