GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

For the dataframe df_data, the following statement will: d…

For the dataframe df_data, the following statement will: df_data.set_index(“ID”, inplace = True)

Read Details

A permanent gas is one that may not be compressed to a liqui…

A permanent gas is one that may not be compressed to a liquid at 25°C. Which of the following are permanent gases?   gas b.p. (°C) crit. temp.(°C)   O2 −183 −119   NH3 −33.3 31   SO2 −10 158

Read Details

Niobium crystallizes in a body-centered cubic unit cell. If…

Niobium crystallizes in a body-centered cubic unit cell. If the radius of a niobium atom is 0.145 nm, what is the length of an edge of the unit cell?

Read Details

Generate an 10X10 matrix as a list of lists using list compr…

Generate an 10X10 matrix as a list of lists using list comprehension.  All elements of this matrix are ones except the diagonal elements are zeros. This should be one line of code

Read Details

Which of the following pandas methods computes the frequenci…

Which of the following pandas methods computes the frequencies of value occurrences in the data?

Read Details

At 338 mm Hg and 72°C, a sample of carbon monoxide gas occup…

At 338 mm Hg and 72°C, a sample of carbon monoxide gas occupies a volume of 0.225 L. The gas is transferred to a 1.50-L flask and the temperature is reduced to –15°C. What is the pressure of the gas in the flask?

Read Details

A balloon is filled with He gas to a volume of 2.10 L at 35°…

A balloon is filled with He gas to a volume of 2.10 L at 35°C. The balloon is placed in liquid nitrogen until its temperature reaches –196°C. Assuming the pressure remains constant, what is the volume of the cooled balloon?

Read Details

You cannot have an if/elif/esle statement inside a lambda fu…

You cannot have an if/elif/esle statement inside a lambda function

Read Details

Which of the following pandas methods computes a set of diff…

Which of the following pandas methods computes a set of different summary statistics for the whole DataFrame object?

Read Details

A date frame df_data that contains information about the pro…

A date frame df_data that contains information about the products in a certain store. It contains several columns: Product ID: This is a unique numerical value for each product. Cost Price: A float value that represents the cost for each product. Sale Price: A float value that contains the sale price for each product. Product Category: This an integer value that takes one of 4 possible values: 0 for baby cloths, 1 for kids cloths, 2 for women cloths and 3 for men cloths. Answer the following questions: 1- Write a code to display the Cost price for each Product Category. 2- Write a code to find the product ID for the product that was sold the most in each Category (in terms of the number of items sold) 3- Write a code to find the total profit from each category. *hint: use groupby

Read Details

Posts pagination

Newer posts 1 … 72 73 74 75 76 … 69,288 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top