Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

read a csv and plot in python

# Imports
import numpy as np
import pandas as pd
from pandas import DataFrame, Series
import matplotlib.pyplot as plt
from scipy.stats import pearsonr
from __future__ import division
import seaborn as sns
sns.set(style='ticks', palette='Set2')
%matplotlib inline

#GG
df= pd.read_csv('/content/drive/MyDrive/Colab Notebooks/res_data/dimers/py_GG.dat', header = None, delim_whitespace=True, error_bad_lines=False)

import seaborn as sns
sns.set_theme(style="ticks")

ax = df
print(df.head)
sns.pairplot(ax, hue=0, height=20, plot_kws={"s": 20})
Comment

PREVIOUS NEXT
Code Example
Python :: datetime strptime format 
Python :: python add item multidimensional list 
Python :: valor absoluto en python 
Python :: dataframe column in list 
Python :: python validate url 
Python :: check integer number python 
Python :: pd merge 
Python :: install SocketIO flask 
Python :: number of unique pairs in columns pandas 
Python :: convert list to nd array 
Python :: # find out of the memory of the python object 
Python :: get month day year 12 hour time format python 
Python :: install python 3.6 dockerfile 
Python :: how to play video in colab 
Python :: pandas filter with given value 
Python :: convert text to speech in python 
Python :: python logging into two different files 
Python :: pandas return specific row 
Python :: creating a pandas df 
Python :: flask migrate 
Python :: python access global variable 
Python :: pyside 
Python :: python parallel processing for loop 
Python :: find all color in image python 
Python :: pip in vscode linux 
Python :: python string: iterate string 
Python :: python mixins 
Python :: cut rows dataframe 
Python :: python move a file from one folder to another 
Python :: heroku python buildpack 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =