From df765fb31509e92704575141e087c4b42ea6449a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 9 May 2025 02:43:00 +0200 Subject: [PATCH] Pandas --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8fe2c56..a5e57cb 100644 --- a/README.md +++ b/README.md @@ -3352,7 +3352,7 @@ c 6 7 ``` ```python -.to_json/csv/html/parquet/latex() # Returns a string/bytes if path is omitted. +.to_json/csv/html/latex/parquet() # Returns a string/bytes if path is omitted. .to_pickle/excel/feather/hdf() # Method to_hdf() requires `key=`. .to_sql('', ) # Also `if_exists='fail/replace/append'`. ``` @@ -3414,7 +3414,7 @@ import plotly.express as px, pandas as pd ```python = px.line(, x=col_key, y=col_key) # Or: px.line(x=, y=) .update_layout(margin=dict(t=0, r=0, b=0, l=0)) # Also `paper_bgcolor='rgb(0, 0, 0)'`. -.write_html/json/image('') # .show() displays the plot. +.write_html/json/image('') # `.show()` displays the plot. ``` ```python diff --git a/index.html b/index.html index 23b6a23..9be5ffe 100644 --- a/index.html +++ b/index.html @@ -2743,7 +2743,7 @@ c 6 7 <DF> = pd.read_sql('<table/query>', <conn>) # Pass SQLite3/Alchemy connection. See #SQLite. -
<DF>.to_json/csv/html/parquet/latex(<path>)    # Returns a string/bytes if path is omitted.
+
<DF>.to_json/csv/html/latex/parquet(<path>)    # Returns a string/bytes if path is omitted.
 <DF>.to_pickle/excel/feather/hdf(<path>)       # Method to_hdf() requires `key=<s/df_name>`.
 <DF>.to_sql('<table_name>', <connection>)      # Also `if_exists='fail/replace/append'`.
 
@@ -2790,7 +2790,7 @@ z
<Fig> = px.line(<DF>, x=col_key, y=col_key)           # Or: px.line(x=<list>, y=<list>)
 <Fig>.update_layout(margin=dict(t=0, r=0, b=0, l=0))  # Also `paper_bgcolor='rgb(0, 0, 0)'`.
-<Fig>.write_html/json/image('<path>')                 # <Fig>.show() displays the plot.
+<Fig>.write_html/json/image('<path>')                 # `<Fig>.show()` displays the plot.
 
<Fig> = px.area/bar/box(<DF>, x=col_key, y=col_key)   # Also `color=col_key`.
 <Fig> = px.scatter(<DF>, x=col_key, y=col_key)        # Also `color/size/symbol=col_key`.