Create a Pandas program to create
• Datetime object for Jan 15 2012.
• Specific date and time of 9:20 pm.
• Local date and time.
• A date without time.
• Current date.
• Time from a datetime.
• Current local time.
Write a Pandas program to convert all the string values to upper, lower cases in a given pandas series. Also find the length of the string values.
Design a Pandas program to join the two given data frames along rows and assign all data
Develop a NumPy program to sort the student id with increasing height of the students from given students id and height. Print the integer indices that describes the sort order by multiple columns and the sorted data.
Create a NumPy program to create a structured array from given student name, height, class and their data types. Now sort by class, then height if class are equal.
Write a NumPy program to compute the mean, standard deviation, and variance of a given array along the second axis.
Design a python program that merges two files and write the results to new file (THREE.txt). The merge operation should take place line by line. The first line of the merged file should contain the first line of TWO.txt and the second line of the merged file should contain the first line of the ONE.txt.
For Example:- The content of ONE.txt and TWO.txt are input and the content of THREE.txt is the output.
Input:-
Python Language is old Programming language!!!
Which Language is Old Programming Language?
Output:
Which Language is Old Programming Language?
Python Language is old Programming language!!!
case=1
input= This is same as C Programming language used to do more complex problem.
Usually a file is kept on a permanent storage media, e.g. a hard drive disk.
output= Usually a file is kept on a permanent storage media, e.g. a hard drive disk.
This is same as C Programming language used to do more complex problem.
Ram loves playing with integers.He has a positive integer N.He wants to find special factors of the number.A factor is a number which exactly divides the given number.A factor is special if it is a prime number.Help Ram by identifying all special factors of the number.
man is very passionate about solving matrix problems.write solving he got stuck in a problem where he was given a m×n integer matrix in python
ayush is a given a list of N integers.He does not like non positive numbers appearing in the list.He wishes to replace each of the given non positive numbers with the last positive number encountered in the list.Help him by providing the modified list as the output