Dalian Hotel Data Analysis

This project comes from the laboratory building.< Building+Data Analysis and Mining > Phase 6 student Miss_candy. "Building + Data Analysis and Mining Actual Practice" is a course content tailored to meet the needs of data analysis or data mining junior engineer positions in the experimental building. It consists of 35 experimen ...

Posted on Thu, 10 Oct 2019 05:58:24 -0700 by kevin777

Python function parameter passing, return value

Article directory Position parameter transfer, i.e. one-to-one transfer, the order of transfer can not be confused Key argument passing, f(arg1=...,arg2=...,...) Default value, pass Pass any number of arguments Use any number of keyword arguments Return Value Return Dictionary Pass lists, modify list ...

Posted on Fri, 20 Sep 2019 23:15:23 -0700 by drexnefex

Python Numeric Type and Sequence Type

value type # NUMERICAL TYPES Integer int Floating-point float A. real a. imag. A method for complex type complex to view real and imaginary parts Boolean type bool Viewing Data Types Using type Functions #Integer type a = 3 print(type(a)) <class 'int'> #Floating Point Types a = 3.0 prin ...

Posted on Thu, 18 Jul 2019 18:31:46 -0700 by testtesttesttest

3. List, tuple of Python object types

Basic object types for python In python, everything is an object, and you may not understand the meaning of this sentence yet, but from now on, what we are about to touch is the object of python, which has types. Python defaults some object types int integer Floating-point numbers (think of them as decimal numbers without going into depth) ...

Posted on Thu, 06 Jun 2019 09:59:37 -0700 by elecktricity

Matplotlib Drawing Course (Advanced 2D)

1. Introduction to the experiment 1.1 Experimental Contents Matplotlib is an open source drawing library supporting Python language. Because it supports rich drawing types, simple drawing methods and perfect interface documents, it is loved by Python engineers, scientific researchers, data engineers and other people. This is Chapter ...

Posted on Mon, 27 May 2019 16:49:25 -0700 by wolves

List based on python

List: We introduce a new concept: data organization: Data structure is a collection of data elements organized in some way, which can be numbers or characters. Even other data structures > In python, the most basic data structure is the sequence, each element in the sequence. Plaques are assigned an ordinal number -- the lo ...

Posted on Sun, 19 May 2019 11:15:29 -0700 by bobbybrown

Explanation of python's four major functions

Python's four functions: 1. General functions 2. Default function 3. Keyword function 4. Collecting parameters   1. General function a. Define variable names directly when defining b. Place variables or values directly in the specified location when invoking        def function name (parameter 1, parameter 2...): Function ...

Posted on Fri, 17 May 2019 18:26:29 -0700 by backinblack

Python Data Analysis Chapter 1

Python Data Analysis Chapter 1 Introduction to Python Library First, look at a brain map that depicts data analysis software. Brain Map of Data Analysis Software Various databases, data analysis, data processing and data visualization. 1.1 Software for Books 1.2 Install NumPy, Scipy, matpllotlib and IPthon through source code ...

Posted on Tue, 14 May 2019 23:46:15 -0700 by Capnstank

django2 Actual Warfare 3. Examination of Model Additions and Deletions

Following Up django2 Actual 2. Creating Blog Applications django uses ORM mode to manipulate data, which abstracts the changes of database into calls to object methods. Developers only need to call related methods instead of writing sql statements. Using an interactive shell Enter the interactive shell environment (ipython is recom ...

Posted on Fri, 10 May 2019 16:49:23 -0700 by Brunda

Common pits in python language (continuous updates)

1. Do not use mutable objects as function defaults The code is as follows: In [1]: def append_to_list(value, def_list=[]): ...: def_list.append(value) ...: return def_list ...: In [2]: my_list = append_to_list(1) In [3]: my_list Out[3]: [1] In [4]: my_other_list = append_to_list(2) In [5]: my_other_list ...

Posted on Wed, 24 Apr 2019 14:09:35 -0700 by Tory