What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-24 18:31:07
command to read file in python using pandas
import panda as pd file_csv = pd.read_csv("file path") ## as csv format file_excel = pd.read_excel("file path") ## as excel format file_json = pd.read_json("file path") ## as json format file_html = pd.read_html("file... Add solution -
Python 2021-10-19 07:05:08
drop first column read_csv
# Read column names from file cols = list(pd.read_csv("sample_data.csv", nrows =1)) print(cols) # Use list comprehension to remove the unwanted column in **usecol** df= pd.read_csv("sample_data.csv", usecols =[i for i in cols if i != ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5