Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

1. Given x=[2,1,4,1.5,6,8.9,9,7,8,0,9], create a pandas dataframe, with x as its values. Label the column price and the index be the first 11 days of

image text in transcribed 1. Given x=[2,1,4,1.5,6,8.9,9,7,8,0,9], create a pandas dataframe, with x as its values. Label the column price and the index be the first 11 days of Feb 2020. - Find the dates where the price is less than 0. - Find the dates where the prices is greater than 5 but less than 20. - Find the dates where the moving 2-days average is greater than 8 . 2. Generate a 50 -by-20 of random integers, which records the holdings of 20 different stocks by 50 investors. - Save the numbers in a dataframe. - Make use of 4 characters random strings to denote the name of the investors, and - stock_01, stock_02, ..., stock_20 to denote the names of the stocks. - Obtain the name of the investor that has the largest holdings of stock_15 - Determine the total and mean holdings of each stock by all the investors

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Finance questions