python dataframe
In python, you have many ways to represent a 2-dimensional array. You can use list like:[[1,2],[3,4],[5,6]], you can use ndarray in numpy like:numpy.array([[1,2],[3,4],[5,6]]), you can also use dataframe in the […]
In python, you have many ways to represent a 2-dimensional array. You can use list like:[[1,2],[3,4],[5,6]], you can use ndarray in numpy like:numpy.array([[1,2],[3,4],[5,6]]), you can also use dataframe in the […]
If you learn python based AI software such as tensorflow, you’ll inevitably meet the package Numpy and DataFrame,etc. So you must learn how to use Numpy and DataFrame before you […]
Python indent seems an easy syntax. If you use the same number of spaces/tabs(don’t mix spaces and tabs) for code lines in the same block, you’ll have no problem. That […]
Since Instagram uses our privacy to make money, we’d better create some bots to fuck this bitch. To write an instagram bot, the first issue we’ll encounter is how to […]
requests library is a powerful python package for http. You can use it to fetch web pages, and do anything as the http verbs can do. To use requests, install […]
import can be used independently: import module import package It can be used to import a module, a package, or . concated module/packages. import package.module import package1.package2 import package1.package2.module So […]
I often got confused about JSON and JSON string. JSON is the code you write in your javascript script to represent an object, so the code is called JavaScript Object […]
I have problem running a python script developed using python2.7. My python environment is Python2.6.6 under CentOS 6.5. Some code is broken when running in old python version. For example, […]
Python programming under windows has the same headache problem as programming in Linux: you have to install missing dependent packages endlessly. I installed python 2.7 under Windows, and now I […]
As a C++ programmer, you do not need to buy a python book to learn it from the beginning. Bearing in your mind some differences between C++ and python is […]