You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resulting object has the type of the cell value.
182
182
183
-
184
183
---
185
184
185
+
# Loading a DataFrame from a file
186
+
187
+
One nice thing about loading spreadsheet data into a pandas DataFrame is that the file can come either from your local file directory or from a URL. The same function can be used for either data source.
188
+
189
+
## Loading a spreadsheet via a URL (3m02s)
190
+
191
+
Functions for reading and writing from spreadsheets to pandas DataFrames:
192
+
193
+
`pd.read_csv()` read from a CSV file into a data frame.
194
+
195
+
`pd.to_csv()` write from a data frame to a CSV file.
196
+
197
+
`pd.read_excel()` read from an Excel file into a data frame.
198
+
199
+
`pd.to_excel()` write from a data frame to an Excel file.
200
+
201
+
For details about reading from particular sheets in an Excel file, delimiters other than commas, etc. see the [pandas User Guide](https://pandas.pydata.org/docs/user_guide/io.html) and [this Stack Overflow post](https://stackoverflow.com/questions/26521266/using-pandas-to-pd-read-excel-for-multiple-worksheets-of-the-same-workbook).
0 commit comments