Home / insert new column in dataframe python / Practical File- Informatics Practices (Class XII)
www.python4csip.com
Practical File- Informatics Practices (Class XII)
#1 Create a pandas series from a dictionary of values and an ndarray.
1|Page
www.python4csip.com
#2. Given a Series, print all the elements that are above the 75th percentile.
2|Page
www.python4csip.com
#3 Create a Data Frame quarterly sales where each row contains the item
category, item name, and expenditure. Group the rows by the category, and
3|Page
www.python4csip.com
#4. Create a data frame based on ecommerce data and generate descriptive
statistics (mean, median, mode, quartile, and variance).
4|Page
www.python4csip.com
#5. Create a data frame for examination result and display row labels, column
labels data types of each column and the dimensions
5|Page
How to add an extra column to a NumPy array? To add an extra column to a NumPy array with Python, we can use the append method. We create the array a with np.array. Then we call np.zeroes with the dimensions of the array passed in as a tuple and the data type set as the value of dtype. Then we call append with a and z to append z to a. It returns a new array and we assign that to b.
Creator: Microsoft® Word for Microsoft 365
Producer: Microsoft® Word for Microsoft 365
CreationDate: Sat May 9 21:12:49 2020
ModDate: Sat May 9 21:12:49 2020
Tagged: yes
Form: none
Pages: 22
Encrypted: RC4 128-bit
Permissions: print:no copy:no change:no addNotes:no
Page size: 612 x 792 pts (letter) (rotated 0 degrees)
File size: 648612 bytes
Optimized: no
PDF version: 1.7