What do you want to save?
Add Code snippet
New code examples
-
-
Python 2022-02-10 05:25:19
pandas read csv without header
file = pd.read_csv(file_name, header=None) Add solution -
Python 2022-02-06 20:00:24
pandas read_csv random rows
import pandas as pd import numpy as np filename = 'hugedatafile.csv' nlinesfile = 10000000 nlinesrandomsample = 10000 lines2skip = np.random.choice(np.arange(1,nlinesfile+1), (nlinesfile-nlinesrandomsample), replace=False) df = pd.read_csv(filename, skip... Add solution -
Python 2022-02-02 17:46:23
colab import python file
from google.colab import files files.upload() # run the above code and click on the enabled "Choose Files" button import pandas as pd df = pd.read_csv('your uploades file name.csv') # df is a changable variable df.head() # shows first 5 rows Add solution -
Python 2022-02-02 04:52:24
update csv file in python using pandas
I was able to get the desired data frame. import pandas as pd import numpy as np df1 = pd.read_csv('\\dir\\test1.csv', index_col=0) df2 = pd.read_csv('\\dir\\test2.csv', index_col=0) new_index = list(set(list(df1.index.values)+list(df2.index.values))) ... Add solution -
Other 2022-02-01 21:41:11
chemical webapp
""" Docker Container: https://hub.docker.com/r/continuumio/anaconda3 RDKit Installation: https://www.rdkit.org/docs/Install.html """ import mols2grid import pandas as pd import streamlit as st import streamlit.components.v1 a... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5