Find the output for following:

import numpy as np

pencil = np.array([10,20,30])

eraser = np.array([40,50,70])

pen = np.array([11,16,17,18])

import pandas as pd

Stationary = pd.DataFrame([pencil, pen, eraser], columns = ['AB', 'CD', 'EF', 'GH']) print(Stationary)

1
\(\begin{array}{ccccl} & \mathrm{AB} & \mathrm{CD} & \mathrm{EF} & \mathrm{GH} \\ 0 & 10 & 20 & 30 & \mathrm{NaN} \\ 1 & 11 & 16 & 17 & 18 \\ 2 & 40 & 50 & 70 & \mathrm{NaN} \end{array}\)
2
\(\begin{array}{rrrrl} & \mathrm{AB} & \mathrm{CD} & \mathrm{EF} & \mathrm{GH} \\ 0 & 10 & 20 & 30 & \text { No value } \\ 1 & 11 & 16 & 17 & 18 \\ 2 & 40 & 50 & 70 & \text { No value } \end{array}\)
3
\(\begin{array}{ccccl} & \text { AB } & \text { CD } & \text { EF } & \text { GH } \\ 0 & 10 & 20 & 30 & 0 \\ 1 & 11 & 16 & 17 & 18 \\ 2 & 40 & 50 & 70 & 0 \end{array}\)
4
\(\begin{array}{ccccl} & \text { AB } & \text { CD } & \text { EF } & \text { GH } \\ 0 & 10 & 20 & 30 \\ 1 & 11 & 16 & 17 & 18 \\ 2 & 40 & 50 & 70 & \end{array}\)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation