Data Structures in pandas Series: is a one-dimensional labeled array capable of holding any data type (integers, strings, floating point numbers, Python objects, etc.). The axis labels are collectively referred to as the index. The basic method to create a Series is to call. .Series (data=None, index=None, dtype=None, name=None, copy=False, fastpath=False) Parameters: data : array-like, dict, or scalar value Contains data stored… Continue reading Chapter-2


Chapter -1

pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series. Reading files using pandas To select single column: In the above example you can see there is missing value in wind speed .In order to remove the… Continue reading Chapter -1

NumPy: It's a package for scientific computing with Python. NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. Which is best numPy or list ? NumPy is faster ,convenient and best memory… Continue reading

Initializing one variable into three: Input:['code', 'mentor', 'python', 'developer'] Output: code mentor python developer To print :codecodecodecode mentormentormentormentormentor using print function including code and mentor one single time. To reverse a value input:i love python Writing Fibonacci series using swap variable.

A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing.Python gives you many built-in functions like print(), etc. but you can also create your own functions. To Create a function use keyword 'def'… Continue reading

Lists List is a versatile datatype available in python which can be written in square brackets. Creation of list a_list= [100,200,300,'Horse',50.4] print "list1[0]: ", print "list2[1:5]: ", a_list[0]: physics a_list[1:5]: [200, 300, 'Horse',50.4] Similar to string indices, list indices start at 0, and lists can be sliced, concatenated and so on. You can perform many… Continue reading

Indentation After specifying the condition or loop in new line there must 4 white-space should be given .If the space is avoided it will throw a error indentation error. If Statement n=int(raw_input()) //Type conversion changing the variable to integer n = int(n) #Defines n as the integer you chose. if n < 0: print ("The… Continue reading