1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nadusha1986 [10]
3 years ago
9

Write a program that asks the user for a CSV of the NYC Open Data Film Permits: There is a sample file for June 2019 film permit

s on github. Your program should then print out: the total number of permits in the file, the count of permits for each borough, and the five most popular locations (stored in the column: "Parking Held").
Computers and Technology
2 answers:
Setler [38]3 years ago
8 0

Answer:

pip install pandas

import pandas as pd

import numpy as np

csv_file = input("Enter CSV File Name : ")

df = pd.read_csv(csv_file)

count_row = df.shape[0]

print("There were %d Film Permits in Total." %(count_row))

borough_count = df['Borough'].value_counts()

print(borough_count)

location_count = df['ParkingHeld'].value_counts().head(5)

print(location_count)

Explanation:

Before running this program, make sure you already previously installed pandas module for python.

Import panda and numpy

Put csv file

count row

then tell to print

Westkost [7]3 years ago
4 0

Answer:

Before running this program, make sure you have installed pandas module for python.

pip install pandas

import pandas as pd

import numpy as np

csv_file = input("Enter CSV File Name : ")

df = pd.read_csv(csv_file)

count_row = df.shape[0]

print("There were %d Film Permits in Total." %(count_row))

borough_count = df['Borough'].value_counts()

print(borough_count)

location_count = df['ParkingHeld'].value_counts().head(5)

print(location_count)

Explanation:

You might be interested in
Which partitioning method must you use for a 4-tb hard drive?
kogti [31]
Convert the MBR to GPT disk is a way to solve the problem.
4 0
3 years ago
All of the following items could be too expensive for someone with only a high school degree to afford except
Papessa [141]
This sounds like a multiple choice answer can I have 4 choices to pick?
7 0
3 years ago
Interest groups are a new political force never envisioned by the Founders. simply reflect the conflictual nature of American po
DiKsa [7]

Answer:

simply reflect the conflictual nature of American politics.

Explanation:

Interest groups simply reflect the conflictual nature of American politics.

3 0
3 years ago
What type of storage drive contains spinning platters?
irga5000 [103]
The disc drive, I believe.
3 0
3 years ago
Nvm is not compatible with the npm config prefix option
Mrac [35]
I wish I known I just need the points
8 0
3 years ago
Other questions:
  • James was having coffee and overhead a conversation between two men who talked about the fact that their friend could not find a
    10·1 answer
  • Which careers have the highest minimum experience requirement?
    6·1 answer
  • A friend of yours is having trouble getting good Internet service. He says his house is too remote for cable TV—he doesn’t even
    11·1 answer
  • Wireless technology’s greatest strength, allowing access without being connected to the network by wires, is also its greatest w
    11·1 answer
  • A constructor: A. always accepts two arguments B. has return type of void C. has the same name as the class D. always has an acc
    9·1 answer
  • The northern half of this continent is primarily rainforest and savanna.
    5·1 answer
  • PLZ HELP
    15·2 answers
  • The variable named var2 declared above will include an ending NULL character.
    9·1 answer
  • ___ allow users to select controls by keyboard shortcuts. (Points : 3) Alternative keys
    13·1 answer
  • Why are digital computers more popular these days?​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!