Should I learn Python before R.
so that is now a little longer.
I acquired my first BASIC knowledge when computers were still from Commodore and had 64k memory and that was enough for all tasks. Except for me, because my father didn't allow me to do such a bad thing. (The whole computer kits later become sociopathic and die from lack of sunlight, fresh air and coffee poisoning - that was foreseen in the 80s and warned about the risks accordingly.) Then a completely different BASIC ran on my Amiga 500: that came without line numbers and you actually didn't need a GOTO command and I rubbed my eyes. That's why there were these chic "functions" that I also got to know in PASCAL at school. For my Amiga I reached into the then rather flat pocket and bought a C compiler. That was something completely different and also felt a lot better. During my studies I had other things to do and programming was no longer an issue. I also no longer had a compiler or interpreter for any language and I missed programming. Then as now, I developed allergic reactions to Java and for C there was something complicated command line-related from the Linux world for free, but that was too unwieldy for me and for the short time I was too close to the machine.
THEN I MET PYTHON!
The German Python Forum does not lose its data and so I can reconstruct that I registered there in 2006. My first awkward and unsuccessful attempts to walk with R go back around this time. At that time I had misunderstood R as a calculator for statistical tests and not as a programming language, which was a mistake. On the other hand, I learned Python with enthusiasm, but it would never have occurred to me to do statistical data analysis with it. At that time I didn't really have any data to evaluate either. Then, inspired by Python, I started working on weird programming languages and haven't touched Python for a long time, but only because I found the other languages temporarily more interesting. Not because I was dissatisfied with Python. If I had something serious to program that also needs to be waited longer, I would probably rehash my Python knowledge and rely on it.
PYTHON IS GREAT!
Not for data analysis, but with the eyes of a man who would like to learn a language that is as versatile as possible, that is powerful but not overloaded, has a clear syntax and guides you towards good habits that really have many batteries included and in the form of the above Forums a really good German-speaking community that has reasonable GUI toolkits and guarantees a long learning curve, i. H. doesn't get boring. Everything is an object, but whoever wants to program imperatively is allowed to program imperatively, whoever wants to program object-oriented is allowed to program object-oriented and whoever wants to program functionally can do that. Only those who are sloppy when indenting the code will immediately get something on their fingers from the language. On the other hand: If you keep a little order when you indent, you don't need curly brackets and everyone here knows how stupid they are on the German keyboard.
I now know that much of the beauty of syntax has been stolen from Haskell. In its pure form in Haskell this is even more elegant, but who uses Haskell? Python has arrived in real life. Python has exceeded the critical mass of users. Learning Python is a future-proof investment. Point. Python is great.
After this ultimate adulation - and I could go on like this for quite a while - why then R? Quite simply because I don't need a general purpose programming language now, but want to deal with data processing. And that's what R is made for and that goes smoothly in R. I don't want to import the scipy.stats module for every t-test and then function calls like
Code: Select all
Ok, that was just petty. How about the following example. A question on Stackoverflow:
Legitimate question. The fact that every data type can also have the value NA shows that Rs is deeply rooted in statistical data analysis. What is the accepted answer to that?
What is python's equivalent of R's NA?
To be more specific: R has NaN, NA, NULL, Inf and -Inf. NA is generally used when there is missing data. What is python's equivalent?
http://stackoverflow.com/questions/2865 ... t-of-rs-na
Scikit-learn doesn't handle missing values currently. For most machine learning algorithms, it is unclear how to handle missing values, and so we rely on the user of handling them prior to giving them to the algorithm. Numpy doesn't have a "missing" value. Pandas uses NaN, but inside numeric algorithms that might lead to confusion.
Apparently there is a data value nan in Numpy and a NaN in pandas. This is handled about as elegantly as the object orientation in R, except that I am much more interested in dealing with missing values than with object orientation. Machine learning without NA data? Do I have to do everything myself? I don't really know my way around, but from an outsider perspective it all looks very grafted and inharmonious with these data processing modules.
What is probably much more important to me than these language aspects - but you don't care - is that I learned statistics and R at the same time. There is simply a lot of study material for statistics and R and I get the impression that with Python this is more difficult. When I look at CrossValidated, there have been 18 questions written with the R-tag in the last 24 hours since now, but only one with the Python-tag. Enter "Statistics with Python" and "Statistics with R" on Amazon. The result speaks volumes. Personally, my bottleneck is more the understanding of statistics and machine learning than the programming and I believe that with R I am betting on the right horse. Especially since I need real statistics rather than "data science" with my small data sets.
Always program in such a way that the maxim of your programming style could be the basis of general legislation
- The spelling is no longer important
- Kills Mandarin other Chinese languages
- How was the concept of money invented
- Is it fun to live in Indonesia?
- Consume cancer cells HIV
- What are your reasons for supporting Israel
- Why do athletes take glucose tablets
- Can you live a life without passion
- Can it be healthy for you to eat fat?
- What is your preferred content marketing tactic
- All women sell sex
- What is the importance of foreign exchange
- Well worth BNI
- Any country is more advanced than Singapore
- How does SEO work in WordPress
- Accurately represents Jordan Peterson Carl Jung
- What's your best blogging platform
- Why is money so personal
- When did you stop chasing your dreams?
- What happens to the homeless
- What are the most famous pagan religions
- Are Democrats against Republicans
- What percentage of the African population is white
- Is Doing Dr. Mahathir Mohamad corrupt
- How can I become an algorithm ninja
- Which languages does Melania speak fluently
- Malaysians hate China
- What are some nicknames for little people
- Is liquid soap better than bars of soap
- Is e-commerce still profitable in 2019
- What does Isaiah 14 12
- What are the best trails in Hawaii
- Salt water is heavier than fresh water
- How sailors escape a submarine