What is Data? Data is a series of Anformation. One motive of Data Science is to shape data, making it interpretable and effortless to work with. Data can be classified into two groups : Structured data Unstructured facts Unstructured Data Unstructured statistics is now not organized. We have to prepare the facts for evaluation purposes. How to Structure Data? We can use an array or a database desk to structure or existing data. Example of an array: [80, 85, 90, 95, 100, 105, 110, 115, 120, 125] Different between Data vs Information Data Data are the variables that help to develop ideas/conclusions. Data are text and numerical values. Data doesn’t rely on Information. Bits and Bytes are the measuring unit of data. Data can be easily structured as the following: 1.Tabular data 2.Graph 3.Data tree Data does not have any specific purpose It is low-level knowledge. Data does not directly helps in decision making. Data is collection of facts, which it self have no mean...
Variable in Python Variables definition Variables are boxes for storing information values . Creating Variables Python has no command for putting forward a variable. A variable is created the instant you first assign a cost to it. Example : x = 5 y = "John" print(x) print(y) x is a variable ok. Variable names A variable can have a short name (like x and y) or a more descriptive name (age, autoname, total volume) Rules for Python variables: A variable name must start with a letter or the underscore character A Variable name cannot start with a number beginA variable name can only contain alphanumeric characters and underscores (A-z, 0-9 and _). Variable names are case sensitive (age, Age and AGE are three different variables) Example : myvar = "John" my_var = "John" _my_var = "John" myVar = "John" MYVAR = "John" myvar2 = "John" print(myvar) print(my_var) print(_my_var) print(myVar) print(MYVAR) print(myvar2) Many ...
Data Type? Data types are the bracket or categorization of data particulars. It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in Python programming, data types are actually classes and variables are case( object) of these classes. Following are the standard or erected- in data type of Python Numeric Sequence Type Boolean Set Dictionary Numeric In Python, numeric data type represent the data which has numeric value. Numeric value can be integer, floating number or even complex numbers. These values are defined as int, float and complex class in Python. Integers – This fee is represented with the aid of using int class. It includes nice or poor complete numbers (with out fraction or decimal). In Python there may be no restrict to how lengthy an integer fee can be. Float – This fee is represented with the aid of using flow class. It...
Comments