Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python csv file plot column

import pandas as pd
from matplotlib import pyplot as plt
plt.rcParams["figure.figsize"] = [7.00, 3.50]
plt.rcParams["figure.autolayout"] = True
columns = ["Name", "Marks"]
df = pd.read_csv("input.csv", usecols=columns)
print("Contents in csv file:
", df)
plt.plot(df.Name, df.Marks)
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: convert set to list python time complexity method 4 
Python :: python variable and data structure 
Python :: using django annotations to get the last record 
Python :: pandas merge keep one of column copy 
Python :: django url wildcard 
Python :: Get First From Table Django 
Python :: property values 
Python :: database setup in django aws 
Python :: datetime.timedelta 
Python :: long format to short in python 
Python :: list comperhension condition in python 
Python :: Django-rest-framework-simplejwt.readthedocs.io 
Python :: msg to pdf converter using python 
Python :: python Access both key and value without using items() 
Python :: how to downlaod file using python 
Python :: selenium restart browser python 
Python :: python networkmanager tutorial 
Python :: 56.5 to 57 in python 
Python :: forward fill pandas ffill 
Python :: how to change a kivy button text in kivy lang from python file 
Python :: grouped bar chart with labels 
Python :: django.com 
Python :: como inserir regras usg pelo prompt 
Python :: varianza en pandas 
Python :: Python Using Global and Local variables in the same code 
Python :: Python Class Without Getters and Setters 
Python :: encrypt 
Python :: jittering(adding back rounded up values) 
Python :: Path 
Python :: added variable plot python 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =